Mercurial > hg > ishara
comparison general/funutils/@function_handle/foreach.m @ 15:19ec801ee487
Bug fix.
author | samer |
---|---|
date | Wed, 16 Jan 2013 12:17:09 +0000 |
parents | 03694e5c8365 |
children |
comparison
equal
deleted
inserted
replaced
14:1ec17635de0e | 15:19ec801ee487 |
---|---|
2 % foreach - do an action for each element in a cell array in order | 2 % foreach - do an action for each element in a cell array in order |
3 % | 3 % |
4 % foreach :: (A=>void), cells(A) => void. | 4 % foreach :: (A=>void), cells(A) => void. |
5 | 5 |
6 if nargin>2, error('Options for foreach no longer supported'); end | 6 if nargin>2, error('Options for foreach no longer supported'); end |
7 for i=1:numel(X), f(x{i}); end | 7 for i=1:numel(X), f(X{i}); end |