problems with number of xticklabels

6 次查看(过去 30 天)
I used the "xticklabels" function, but it limits to about 10 data points. I have 20 points which i need xtick lables on to X-axis. I am using MATLABR2018b-Student use

回答(1 个)

madhan ravi
madhan ravi 2018-11-17
xticks(1:20) %you have to define xticks before xticklabels
xticklabels({'1','2','3','4','5'..............'20'})
  4 个评论
Thishan Dharshana Karandana Gamalathge
Sorry, I don't know what you have meant. If you could explain with an example, that would be helpful.
madhan ravi
madhan ravi 2018-11-17
I mean upload your code and the desired graph that you want to attain

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by