[scilab-Users] legend (plot) & execstr

Samuel GOUGEON Samuel.Gougeon at univ-lemans.fr
Mon Nov 8 19:54:32 CET 2010


  ----- Message d'origine -----
De : paul.carrico at free.fr
Date : 08/11/2010 19:40:
> Samuel,
>
> First of all thanks for your interest/help
>
> Since I don't know exactly how many data files I have,
I do not understand. What was Nbre_fichiers ?
>   I would like to write the following
>
> nom_fichier1 = "input_data_X.dat";
> nom_fichier2 = "input_data.dat";
> nom_fichier3 = "input_data.dat";
>
>
> then in the plot section I have as many curve as input files ...the what I need is :
> legend(string(nom_fichier1),string(nom_fichier2),string(nom_fichier3),pos=2)
Please forget execstr(), that returns nothing but some error status => help execstr
Why don't you store the filenames in a vector of strings:
noms = ["data1.dat" "curve2.dat" ..]
legend(noms,2)
=> help legend

Samuel



More information about the users mailing list