put_state - update discrete state of a scicos block in an Info list
Info = put_state(Info,n,vec)
- Info :
input Info list
- n :
integer. id of the scicos block
- vec :
vector of real. input vector to store in z register of the block
- Info :
input Info list
function Info=put_state(Info,n,vec)
%cpr=Info(2);
//n=find_num_block(Info2,name);
b=(%cpr.sim("zptr")(n));
for i=1:size(vec,1)
%cpr.state("z")(b+i-1)=vec(i);
end
Info(2)=%cpr;
endfunction
IRCOM Group Alan Layec