|
From: theozh <th...@gm...> - 2017-08-02 13:10:24
|
Thank you! You're right.
Well, if you check help starting with "plot" I see a link to subtopics
"for loops in plot command". But there, nested iteration is not
mentioned. Might be helpful there to set a link to "for". Unfortunately,
I haven't checked help for "for".
However, I just noticed that in order to illustrate my problem I
simplified it too much. This nested loop will actually not (yet) solve
my problem.
Let me try to explain:
I have datafiles which are named with the following scheme:
Data_<1>_<2>_<3>
<1> is a known, limited range e.g. A,B,C,D,E,F,G,H,I
<2> is a unknown, variable range, e.g. a,b,c,d,...
<3> is a unknown, variable range, e.g. 1,2,...
What I would like to plot is in a Multiplot:
All Data_A in the first plot, Data_B in the second, etc...
where a,b,c,... determines the color of the line
and 1,2,... are just data from repeated measurements.
The difficulty is that not files for all combinations, e.g. A_a_1, ...
I_d_9 might exist.
I get the existing filenames via one or several system calls, e.g.
FileList = system("dir /B /S Data_A_*.dat")
or
FileList = system("dir /B /S Data_A_a_*.dat")
I currently do not see how to loop this for each plot of the multiplot.
|