help-octave
[Top][All Lists]
Advanced

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

syntax for "if"


From: Edward C. Jones
Subject: syntax for "if"
Date: Sat, 19 Mar 2005 10:34:29 -0600
User-agent: Debian Thunderbird 1.0 (X11/20050116)

I have a piece of MatLab code that I am running in Octave:

if ~isempty(subp),
   subplot(subp);
end

If I change it to:

if ~isempty(subp),
   disp(subp);
   subplot(subp);
end

The behavior is quite different. Have I used "if" incorrectly?



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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