problems with number of xticklabels

1 view (last 30 days)
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

Answers (1)

madhan ravi
madhan ravi on 17 Nov 2018
xticks(1:20) %you have to define xticks before xticklabels
xticklabels({'1','2','3','4','5'..............'20'})
  4 Comments
madhan ravi
madhan ravi on 17 Nov 2018
I mean upload your code and the desired graph that you want to attain

Sign in to comment.

Categories

Find more on Line Plots in Help Center and File Exchange

Tags

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by