我的数据包含 55 列和 24 行。我想要做的是将每 5 列绘制在一张图中。 (更具体地说...图1第1-5列,图2第6-10列...等等)
每次我尝试 for 循环时,我都会迷路。谁能帮我? 看起来很简单,但我仍在学习如何使用 matlab。
感谢您的帮助
最佳答案
您可以循环播放 5 组:
my_array = zeros(24,55);
% fill my_array
for k = 1:11
values_to_plot = my_array(:,5 * (k-1) + 1 : 5 * k);
figure;
plot(values_to_plot);
end
关于matlab - 多列分组和绘图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4184287/