make_scope_order(path,name,ext)
Add here a paragraph of the function description. Other paragraph can be added
Add here a paragraph of the function description
Add here scilab instructions and comments
//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