如何在matlab中的同一图形上创建多个图

时间:2017-05-02 12:48:45

标签: matlab plot

如何在Matlab中绘制以下图表,以及如何命名av_d,av_c,......

enter image description here

非常感谢你!

1 个答案:

答案 0 :(得分:1)

为了帮助您入门:

% Example data
x = 0:0.01:2*pi;
z = sin(x);
y = ones(size(x));
% Three identical lines plotted in x-z for different y
line([x;x;x;x]',[0*y;y;2*y;3*y]',[z;z;z;z]')
% Rename the yticks
set(gca,'YTickLabel',{'L1','L2','L3','L4'})
grid on
% Change the viewing angle
view(45,45)

输出:Example MATLAB image using lines