Fonction Scilab
eng - fr


return_context_diagr - retourne le contexte d'un fichier diagramme scicos

Librairie

Séquence d'appel

txt = return_context_diagr(namef)

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


//return_context_diagr
//fonction qui retourne le contexte 
//d'un diagrammme scicos contenue dans 
//le fichier 'name'
//Entrée : name le nom du fichier à éexaminer
//         ex : namef=MODNUM+'/scs_diagr/dyna/chua/chua.cos'
function txt=return_context_diagr(namef)

 txt=[]
 if fileinfo(namef)<>[] then
   ierror=execstr('load(namef)','errcatch')
   if ierror==0 then
      ierror2=execstr('txt=scs_m.props(""context"")','errcatch')
      if ierror2<>0 then
        printf("Error while reading context\n");
        txt=[];
      end
   else
     printf("Error while loading %s\n",namef);
   end
 else
  printf("file %s not found\n",namef);
 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