设置2D Matlab图的视图 [英] Set the view for a 2D matlab plot

查看:136
本文介绍了设置2D Matlab图的视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个标准"的2d图,没有3D的东西.我的x轴的范围是[0 1000],我的y轴的范围是[-5 2400].我想在绘图后自动设置视图

Assuming I have a "standard" 2d plot, no 3D stuff. My x axis has a range of [0 1000], my y axis has a range of [-5 2400]. I want to set the view automatically after plotting to

x:[200800] y:[400 1000]

x: [200 800] y: [400 1000]

(例如).我该如何实现?

(as an example). How can i achieve this?

推荐答案

使用 ylim() 功能.

Use the xlim() and ylim() functions.

这篇关于设置2D Matlab图的视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆