Mercurial > hg > ishara
view general/arrutils/scancols.m @ 12:fbc0540a9208
Moved some high-order functions from funutils to arrutils, updated docs and cleaned up funutils.
author | samer |
---|---|
date | Mon, 14 Jan 2013 22:21:11 +0000 |
parents | general/funutils/scancols.m@e44f49929e56 |
children |
line wrap: on
line source
% scancols :; % ([[M]], [[N]] -> [[M]]) ~'scannning function', % [[M]] ~'initial value', % [[N,L]] ~'data to scan, sequence of length L' % -> [[M,L]]. function Y=scancols(f,y,X) Y=zeros(size(y,1),size(X,2)); for i=1:size(X,2), y=f(y,X(:,i)); Y(:,i)=y; end end