Finding which curve is which.

I am plotting a series of curves through an iteration. Once the plotting is done I am unable to fine which curve resulted from which iteration.
Is there a command or procedure to find that out.
any help is appreciated. thnx

Antworten (1)

Mischa Kim
Mischa Kim am 17 Feb. 2014
Bearbeitet: Mischa Kim am 17 Feb. 2014

0 Stimmen

Roshan, use a legend, which gives you the information right in the plot. As an example:
x = 0:0.1:pi;
lab = [];
hold all
for ii = 1:4
plot(x,rand(1,length(x))+sin(x),'-*')
lab{ii} = strcat('iteration: ',num2str(ii));
end
legend(lab);

Kategorien

Gefragt:

am 17 Feb. 2014

Bearbeitet:

am 17 Feb. 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by