matlib画图基本用法(1)
MATLAB基本绘图用法
1.plot的基本用法
# 绘制基本像素点(x, y)的坐标
plot(x, y);
# 如果只给定y的坐标,那么x轴将会按x=[1,2,3,...]分布
plot(y);
# 将两个图像画在一张图上
hold on
plot(cos(0:pi/20:pi));
plot(sin(0:pi/20:pi));
hold off
# 画出不同风格的线段
plot(cos(0:...
原创
2018-10-05 21:13:12 ·
1086 阅读 ·
0 评论