ploting variables from a data structure
Ältere Kommentare anzeigen
hi,
i am having four 1x1 structures each contains 50 fields. what i need to do is subplot the 1st field from each structure, save the plot and do the same with the 2nd field from each structure and so on...
I am guessing i need to use a loop on each subplot, to plot each field, but how?
Akzeptierte Antwort
Weitere Antworten (1)
madhan ravi
am 13 Nov. 2018
Bearbeitet: madhan ravi
am 13 Nov. 2018
p = structfun(@plot,S); %an example
p(1).Marker = 'o'; % number 1 represent field 1 marker likewise you can reate a loop for markers alone to differentiate
p(2).Marker = '+';
p(3).Marker = 's';
hold off
1 Kommentar
MONTVERT ADAMS
am 13 Nov. 2018
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!