Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我正在使用的绘图代码
figure x = -pi:pi/40:pi; plot(x,cos(5*x),'-ro',x,sin(5*x),'-.b') hleg1 = legend('cos_x','sin_x');
输出如下:
当我尝试拉伸时间轴时,我得到的是这样的:
但可以看出,当我拉伸时间轴时,幅度会被剪裁。在拉伸时间轴和 vV 时如何避免这种幅度削波?
您可以尝试使用“放大”,加号放大镜图标并非常小心地选择图像的整个垂直范围。axis使用该功能更精确地控制轴的最小值和最大值。
axis
figure x = -pi:pi/40:pi; plot(x,cos(5*x),'-ro',x,sin(5*x),'-.b') hleg1 = legend('cos_x','sin_x'); axis([1.6, 3.2,-1, 1])