several plot - subplot for-loop
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(2 个)
Jan
2021-5-10
Maybe:
...
subplot(1, length(Files), k);
yyaxis left
plot(p,ODsatpercent,'bo--');
yyaxis right
plot(p,Tclean.CTDTMP,'ro--');
legend('%Od','t');
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!