필터 지우기
필터 지우기

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 CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by