如何在Matlab中更改轴大小

时间:2012-07-25 22:04:08

标签: matlab plot

我有这样的情节 enter image description here

如何将y轴的长度更改为[0 20]以获得更大的绘图尺寸。 假设我想要x轴[0 20] y轴[0 20]

1 个答案:

答案 0 :(得分:4)

plot命令之后立即:

set(gca, 'ylim', [0 20], 'xlim', [0 20]);