Axes limits - plotv

1 次查看(过去 30 天)
Gennaro Arguzzi
Gennaro Arguzzi 2018-10-27
评论: dpb 2018-10-27
Hello everyone,
is it possible to specify the limits of axes when I use the statement plotv? I have the code:
M1 = [1 0.7071; 0 0.7071]
figure(1)
plotv(M1,'-')
and I'd like to set limits [-1.5, 1.5] for both axes.
Thank you so much.

采纳的回答

dpb
dpb 2018-10-27
编辑:dpb 2018-10-27
Sure, it's still just drawn on a normal axes object
xlim([-1.5 1.5]); ylim([-1.5 1.5]);
  2 个评论
Gennaro Arguzzi
Gennaro Arguzzi 2018-10-27
Good solution @dpb! The right values are:
xlim([-1.5 1.5]); ylim([-1.5 1.5]);
dpb
dpb 2018-10-27
Probably more useful range, yes... :)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by