フィルターのクリア

How can I zoom into my plot function to a -4 to 4 "interval".

2 ビュー (過去 30 日間)
Jonas Morgner
Jonas Morgner 2022 年 5 月 9 日
回答済み: KSSV 2022 年 5 月 9 日
v1 = [1 -2 -5 6];
v2 = [-100 : .1 : 100];
y = polyval (v1, v2);
plot (v2, y)
How can I zoom in the plot function from -4 to 4?
  1 件のコメント
Mishka
Mishka 2022 年 5 月 9 日
You can set the limits of x-axis inside the plot with the command xlim(). In this case, xlim([-4 4]) should do the job.

サインインしてコメントする。

回答 (1 件)

KSSV
KSSV 2022 年 5 月 9 日
v1 = [1 -2 -5 6];
v2 = [-100 : .1 : 100];
y = polyval (v1, v2);
plot (v2, y)
xlim([-4 +4])

カテゴリ

Help Center および File ExchangeData Exploration についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by