Scilab Function
eng - fr


find_num_block - search the number id of scicos blocks in Info list

Library

Calling Sequence

n = find_num_block(Info,name)

Parameters

File content


//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

Authors

IRCOM Group Alan Layec