在Matlab中绘图,增加Xaxis上的分割数 [英] plotting in matlab, increase number of divisions on Xaxis
本文介绍了在Matlab中绘图,增加Xaxis上的分割数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想增加Matlab Dft图中X
轴上刻度线的数量(幅度与频率).精度还可以,但是我想增加在X
轴上显示的值的数量.
I want to increase number of tickmarks on the X
-axis in a Matlab Dft graph (magnitude vs. frequency). The precision is OK, but I'd like to increase the number of values displayed on the X
-axis.
推荐答案
要设置当前轴的XTick
属性(gca
,获取当前轴),请使用:
To set the XTick
property of the current axis (gca
, get current axis), use:
set(gca,'XTick',tickVector);
,其中tickVector
是包含所需刻度位置的向量.
with tickVector
being a vector containing the desired tick positions.
这篇关于在Matlab中绘图,增加Xaxis上的分割数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文