为了帮助您入门:
% 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)
输出: