Mercurial > hg > octave-lyh
comparison scripts/general/arrayfun.m @ 8358:55b97f709203
minor style fix
author | David Bateman <dbateman@free.fr> |
---|---|
date | Fri, 28 Nov 2008 23:12:35 +0100 |
parents | bdb0a5aea9f2 |
children | 85c9906abfd1 |
comparison
equal
deleted
inserted
replaced
8357:bdb0a5aea9f2 | 8358:55b97f709203 |
---|---|
140 sizetomatch = size (varargin{1}); | 140 sizetomatch = size (varargin{1}); |
141 m2cargs{1} = ones (size (varargin{1}, 1), 1); | 141 m2cargs{1} = ones (size (varargin{1}, 1), 1); |
142 m2cargs{2} = ones (size (varargin{1}, 2), 1); | 142 m2cargs{2} = ones (size (varargin{1}, 2), 1); |
143 cfarg{1} = mat2cell (varargin{1}, m2cargs{:}); | 143 cfarg{1} = mat2cell (varargin{1}, m2cargs{:}); |
144 stillmatches = true; | 144 stillmatches = true; |
145 idx = 1; len = length (varargin); | 145 idx = 1; |
146 len = length (varargin); | |
146 while (stillmatches && idx < len) | 147 while (stillmatches && idx < len) |
147 idx++; | 148 idx++; |
148 thissize = size (varargin{idx}); | 149 thissize = size (varargin{idx}); |
149 if (numel (thissize) == numel (sizetomatch) | 150 if (numel (thissize) == numel (sizetomatch) |
150 && all (thissize == sizetomatch)) | 151 && all (thissize == sizetomatch)) |