Mercurial > hg > octave-nkf
diff scripts/plot/axis.m @ 13174:bd2cd4fd3edf stable
maint: use specific endif, endfor tokens instead of simple end
* gmres.m, getappdata.m, setappdata.m, axis.m:
Use specific endif, endfor tokens instead of simple end.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 20 Sep 2011 15:33:10 -0400 |
parents | 0c3b1a359998 |
children | 8aaaef4a69aa |
line wrap: on
line diff
--- a/scripts/plot/axis.m +++ b/scripts/plot/axis.m @@ -323,11 +323,11 @@ if (iscell (data)) for i = 1:length(data) data{i}(data{i}<=0) = NaN; - end + endfor else data(data<=0) = NaN; - end - end + endif + endif if (iscell (data)) data = data (find (! cellfun (@isempty, data))); if (! isempty (data))