octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Matlab check for negation of empty matrix


From: Richard Crozier
Subject: Re: Matlab check for negation of empty matrix
Date: Thu, 27 Mar 2014 16:03:44 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1

On 27/03/2014 16:00, Rik wrote:
3/27/14

Could someone run the following code under Matlab?

x = [];
if (~x)
   disp ('branch 1');
else
   disp ('branch 2');
end


r2012a

>> x = [];
if (~x)
  disp ('branch 1');
else
  disp ('branch 2');
end
branch 2


Richard

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]