Fonction Scilab
eng - fr


make_scope_order - trie les figures résultantes d'un script de simulation et d'un diagramme scicos

Librairie

Séquence d'appel

make_scope_order(path,name,ext)

Paramètres

Description

Add here a paragraph of the function description. Other paragraph can be added

Add here a paragraph of the function description

Exemple

Add here scilab instructions and comments

Contenu du fichier


//fonction qui trie des fichiers eps
//issus de la fonction scop_results
//en regardant dans un fichier SPECIALDESC
//Entrée : path : chemin du fichier SPECIALDESC
//         name : nom du fichier à traiter
//         ext : type d'extension du fichier à traiter
function make_scope_order(path,name,ext)
 //trouve l'ordre des scope dans SPECIALDESC
 tt=mgetl(path+'/SPECIALDESC');
 a=[];
 for i=1:size(tt,1)
   if strindex(tt(i),'scope_order')<>[] then
     sorder_equ=strindex(tt(i),'=')
     txt=part(tt(i),sorder_equ+1:length(tt(i)))
     a=evstr(txt)
     break
   end
 end
 
 //remet les fichiers dans le bon ordre
 if a<>[] then
   for j=1:size(a,1)
     f=cp_cmd+'./'+name+ext+'/'+name+'_scope_'+string(j)+'.eps ./'+name+ext+'/'+name+'_scope_'+string(j)+'_tmp.eps'
     unix_g(f)
   end
   
   for j=1:size(a,1)
     f=cp_cmd+'./'+name+ext+'/'+name+'_scope_'+string(j)+'_tmp.eps ./'+name+ext+'/'+name+'_scope_'+string(a(j))+'.eps'
     unix_g(f)
   end
   
   unix_g(rm_cmd+'./'+name+ext+'/*_tmp.eps")
 end

endfunction

Fonction(s) utilisée(s)

Add here the used function name and references

Auteurs

enter here the author name Add here the author references