How to save and plot in same figure data from the loop iteration ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Fabrice shao
am 23 Okt. 2018
Kommentiert: Fabrice shao
am 23 Okt. 2018
I have this function: I need to plot loop iteration of gama value in the same figure at the end gama= [1.20,2.90,3.1,4.4,5.3] for gama= %all in the same figure end please need help
0 Kommentare
Akzeptierte Antwort
KALYAN ACHARJYA
am 23 Okt. 2018
Bearbeitet: KALYAN ACHARJYA
am 23 Okt. 2018
for i=1:number_of_iterations
%Do operations
plot();
hold on;
end
In your case
gama=[1.20,2.90,3.1,4.4,5.3];
for i=1:length(gama)
gama=gama(i);
%do operations
Plot();
hold on;
end
3 Kommentare
KALYAN ACHARJYA
am 23 Okt. 2018
Bearbeitet: KALYAN ACHARJYA
am 23 Okt. 2018
Can you provide the code in the proper format (use {} in text format section), so that it can easily readable?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Legend finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!