Mercurial > hg > octave-lyh
diff scripts/general/profexplore.m @ 14222:190952239c2c
Use '!' for not operation in preference to '~'.
* profexplore.m, inpolygon.m, __gnuplot_drawnow__.m, spline.m: Use '!' for not
operation in preference to '~'.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Wed, 18 Jan 2012 21:17:14 -0800 |
parents | 72c96de7a403 |
children | 7277fe922e99 |
line wrap: on
line diff
--- a/scripts/general/profexplore.m +++ b/scripts/general/profexplore.m @@ -32,7 +32,7 @@ function profexplore (data) - if (nargin ~= 1) + if (nargin != 1) print_usage (); endif @@ -87,7 +87,7 @@ printf ("help Display this help message.\n"); printf ("up [N] Go up N levels, where N is an integer. Default is 1.\n"); printf ("N Go down a level into option N.\n"); - elseif (~isnan (option)) + elseif (! isnan (option)) if (option < 1 || option > length (tree)) printf ("The chosen option is out of range!\n"); else @@ -115,7 +115,7 @@ if (length (cmd) > 3 && cmd(3) == ' ') opt = fix (str2double (substr (cmd, 3))); - if (~isnan (opt) && opt > 0) + if (! isnan (opt) && opt > 0) rv = opt; return; endif