现在有一个存在excel里的二维数组10x5的数组,大致如下图,需要用matlab绘成一个三维曲线
通过编写代码的方式绘制,代码如下:
te=[1:1:10];
fe=[1:1:5];
da=[44.6 1.34 0 44.53 1.47 56.32 4.3 14.21 2.78 12.46
0 0 0 27.73 0 0 0 0 0 0
5.05 0.07 0.01 0.13 0.7 1.53 0.12 0.88 0.64 1.26
0 0 0 0 0 0 0 0 0 0.01
3.81 0.1 0 4.41 21.37 1.58 0.03 0.24 0.18 0.42];
for i=1:length(fe)
y=fe(i)*ones(size(te));
hi(i)=plot3(te,y,da(i,:),'color',[rand(),rand(),rand()], 'linewidth',4);
grid on
hold on
end
绘制出的三维曲线如下图所示
212



被折叠的 条评论
为什么被折叠?



