使用subplot()

我有一个10列和20000行的矩阵。

我需要使用subplot()构建一个图来说明一个图中的尺寸(列)之间的关系。所以想将第1列与1、2、3..10、2与1st,2、3、4,... 10th等进行比较。 这应该嵌套循环吗? 我不知道从哪里开始,例如使用plotmatrix(data,data)难道不是容易吗?

感谢您的任何建议

l

oad('data.mat')  %% loads matrix called data
 x = data; %% to make it faster 
counter = 1; %%i ndex to make subplot function plot to the next row later on (fill further rows,beyond 1st one )
for c = 1:10; %% condition to make matrix 10 by 10
for i=1:10; %% condition to make matrix 10 by 10
    subplot(10,10,counter); %% 10 by 10 grid for plots
plot (x( :,i),x( :,c)); %% actual plot command that uses columns of the matrix
counter = counter+1; %% 
end 
end
fgvlty 回答:使用subplot()

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3168064.html

大家都在问