Mercurial > hg > ishara
view arrows/@states/construct.m @ 0:672052bd81f8
Initial partial import.
author | samer |
---|---|
date | Wed, 19 Dec 2012 22:38:28 +0000 |
parents | |
children |
line wrap: on
line source
function u=construct(s,sizes_in) u=construct(s.base,sizes_in); s0=u.get_state(); u.sizes_out = [u.sizes_out,size(s0)]; u.process = mkproc(u.process, nargout(s.base), u.get_state); end function f=mkproc(g,nout,getst) f=@proc_nnn; function varargout=proc_nnn(varargin) varargout=cell(1,nout+1); [varargout{1:nout}]=g(varargin{:}); varargout{nout+1}=getst(); end end