return_state - return the discrete state of a scicos block
res = return_state(Info,n)
- Info :
Info list
- n :
integer. the id of the block to find in the Info list
- res :
list of vector of real. vectors containing the content of the discrete state register of the scicos block
function res=return_state(Info,n)
%cpr=Info(2);
res=list();
for i=1:size(n,1)
if n(i)<>0 then
res(i)=%cpr.state("z")(%cpr.sim("zptr")(n(i)):%cpr.sim("zptr")(n(i)+1)-1);
else
res(i)=[];
end
end
endfunction
IRCOM Group Alan Layec