plot画二维坐标图 需要 变量 x y 如 x=1:0.2:3; y=sin(x); plot(x,y);你的题中: t(1:length(t)-1)可以理解为 x , length(t)-1 表示数组 t的长度 x表示数组或矩阵t 中 的1到length(t)-1个元素 所组成的数组例如:t=[1 2 3 4]; n=length(t)=4 x=t(1:n-1)=[1 2 3] y=[8 9 2] plot(x,y);