Matlab(八)
1.二维图形的绘制
(1)plot(t,y)
①t,y均为向量(绘制一条曲线)
Trial>> t = 1:30;
Trial>> plot(t,3*t)
②t为向量,y为矩阵(绘制多条曲线)
Trial>> A = [t;2*t;3*t;4*t];
Trial>> plot(t,A)
③t,y均为矩阵
Trial>> A = [1,2,3,4,5,6];
Trial&
Matlab(八)
1.二维图形的绘制
(1)plot(t,y)
①t,y均为向量(绘制一条曲线)
Trial>> t = 1:30;
Trial>> plot(t,3*t)
②t为向量,y为矩阵(绘制多条曲线)
Trial>> A = [t;2*t;3*t;4*t];
Trial>> plot(t,A)
③t,y均为矩阵
Trial>> A = [1,2,3,4,5,6];
Trial&