several plot - subplot for-loop
Ältere Kommentare anzeigen
I have several plot in a for loop.
I want to see them on one side but I can't figure out what values I have to put in subplot () in a for loop
Files=dir('*.csv')
for k=1:length(Files)
filename=Files(k).name
filename='dataset_001.csv'
figure
yyaxis left
plot(p,ODsatpercent,'bo--');
yyaxis right
plot(p,Tclean.CTDTMP,'ro--');
legend('%Od','t');
end
Antworten (2)
Jan
am 10 Mai 2021
Maybe:
...
subplot(1, length(Files), k);
yyaxis left
plot(p,ODsatpercent,'bo--');
yyaxis right
plot(p,Tclean.CTDTMP,'ro--');
legend('%Od','t');
2 Kommentare
Jan
am 10 Mai 2021
After your comment: Then:
subplot(12, 13, k);
GIOVANNA GUADAGNIN
am 10 Mai 2021
GIOVANNA GUADAGNIN
am 10 Mai 2021
0 Stimmen
Kategorien
Mehr zu Subplots 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!