find_num_block - search the number id of scicos blocks in Info list
n = find_num_block(Info,name)
- Info : Info list returned by scicos_simulation function
- name : string. name of block to find
- n : vector of integer. the id number of each block which have the name set in the name parameter
//find_num_block
//fonction qui retourne les numéros des blocks
//présents dans une liste Info ayant un nom
//donné.
//
//Entrée : Info liste Info
// name : nom du block a trouver
//Sortie : n : numéro des blocks dans le diagramme de
// nom name
function n=find_num_block(Info,name)
%cpr=Info(2)
tt=%cpr.sim("funs");
j=1;
n(j)=0;
for i=1:size(tt)
if tt(i)==name then
n(j)=i;
j=j+1;
//break;
else
//n=0;
end
end
endfunction
IRCOM Group
Alan Layec