comparison scripts/general/arrayfun.m @ 8610:85c9906abfd1

use endif and endfor instead of end
author John W. Eaton <jwe@octave.org>
date Tue, 27 Jan 2009 23:17:37 -0500
parents 55b97f709203
children eb63fbe60fab
comparison
equal deleted inserted replaced
8609:fcf762ba66cf 8610:85c9906abfd1
166 varargout = cell (max ([nargout, 1]), 1); 166 varargout = cell (max ([nargout, 1]), 1);
167 if (idx >= len) 167 if (idx >= len)
168 [varargout{:}] = cellfun (func, cfarg{:}); 168 [varargout{:}] = cellfun (func, cfarg{:});
169 else 169 else
170 [varargout{:}] = cellfun (func, cfarg{:}, varargin{idx:len}); 170 [varargout{:}] = cellfun (func, cfarg{:}, varargin{idx:len});
171 end 171 endif
172 endfunction 172 endfunction
173 173
174 %% Test function to check the "Errorhandler" option 174 %% Test function to check the "Errorhandler" option
175 %!function [z] = arrayfunerror (S, varargin) 175 %!function [z] = arrayfunerror (S, varargin)
176 %! z = S; 176 %! z = S;