How to implement a for loop on figure plotting?
1 ビュー (過去 30 日間)
表示 古いコメント
Hi,
The size of f is 1*500, while the size of Q is 115 * 500. I want to plot Q at few selected f values say with the iinterval of 100 etc. How I can code for a for loop?
0 件のコメント
回答 (1 件)
Star Strider
2022 年 5 月 19 日
Try something like this
f = 1:500;
Q = randn(115,500);
idx = 1:100; % Choose Specific Columns
figure
plot(f(idx), Q(:,idx))
grid
.
5 件のコメント
Image Analyst
2022 年 5 月 19 日
@Nisar Ahmed you keep forgetting to attach your data in a .mat file with the paperclip icon. That would help.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!