How can I zoom into my plot function to a -4 to 4 "interval".
1 次查看(过去 30 天)
显示 更早的评论
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
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
2022-5-9
v1 = [1 -2 -5 6];
v2 = [-100 : .1 : 100];
y = polyval (v1, v2);
plot (v2, y)
xlim([-4 +4])
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!