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])