Make 1 figure with 2 plots in 1 row. First plot will be empty, and second plot will contain bar plot of all values of i from one of the above loops.
1 次查看(过去 30 天)
显示 更早的评论
subplot(1,2,1);
subplot(1,2,2);
bar(i)
but howto add additional variable v which will 'remember' values of i from each iteration.
2 个评论
Ruger28
2019-10-7
You really need to provide more details in your questions. You need to provide more than 3 lines of code, NONE of which contain any usable data/info.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!