problems with number of xticklabels

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

Risposte (1)

xticks(1:20) %you have to define xticks before xticklabels
xticklabels({'1','2','3','4','5'..............'20'})

4 Commenti

Thanks. But in that case the plot doesn't start from the Y-axis. I want to start the plot from the Y-axis and need to put the X-tick lables every three ticks. Otherwise X-tick lables become jamed.
so upload your datas to experiment
Sorry, I don't know what you have meant. If you could explain with an example, that would be helpful.
I mean upload your code and the desired graph that you want to attain

Accedi per commentare.

Categorie

Scopri di più su Graphics Performance in Centro assistenza e File Exchange

Prodotti

Release

R2018b

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by