[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
syntax for "if"
From: |
John W. Eaton |
Subject: |
syntax for "if" |
Date: |
Tue, 22 Mar 2005 08:00:26 -0500 |
On 19-Mar-2005, Edward C. Jones <address@hidden> wrote:
| 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?
How is it different? As far as I can tell, both bits of code work
properly for me.
If you have a bug to report, please send a complete report to
address@hidden To find out how to submit a report that
will be useful for solving the problem, please read
http://www.octave.org/bugs.html.
Thanks,
jwe
-------------------------------------------------------------
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
-------------------------------------------------------------
- syntax for "if", Edward C. Jones, 2005/03/19
- syntax for "if",
John W. Eaton <=