[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Testing Matlab compatibility of exist()
From: |
Clark Dunson |
Subject: |
Re: Testing Matlab compatibility of exist() |
Date: |
Wed, 25 Jun 2014 10:56:01 -0700 |
>> s.a=1
s =
a: 1
>> tmp=exist('s')
tmp =
1
>> tmp=exist('s.a')
tmp =
0
% I touch'ed vv in pwd (also on path) & got
>> tmp=exist('vv')
tmp =
2
% I touch'ed sin in pwd (also on path) & got
>> tmp=exist('sin')
tmp =
5
% Hope it helps
On Jun 25, 2014, at 10:33 AM, Rik wrote:
> 6/25/14
>
> Could someone run the following code bits under Matlab?
>
> s.a = 1;
> tmp = exist ('s')
> tmp = exist ('s.a')
>
> And a second test. Create a blank file 'sin' in the current working
> directory (which I assume is on the Matlab path()).
>
> tmp = exist ('sin')
>
> Thanks,
> Rik
>