Marking xlim values in x-axis(start up and end values)
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hege
il 11 Lug 2021
Risposto: Walter Roberson
il 11 Lug 2021
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/681523/image.png)
Hi All,
I would like to mark the startup and ending values of x axis(-90 and 90) in X axis. Further, x axis should be divided into interval of 10(-90:10:90) rather than interval of 20.
Appreciate your help!
figure(1)
histogram(Alpha(:),50,'FaceColor','r','Normalization','probability')
xlabel('Alpha')
ylabel('Fibre Frequency')
title('Histogram:MD-TD(CD Plane)')
xlim([-90 90])
0 Commenti
Risposta accettata
Walter Roberson
il 11 Lug 2021
xline([-90 90])
xticks(-90:10:90)
However, with your xlim being at exactly -90 and +90, it is not obvious how you would want -90 and +90 marked on the x axis in a way that does not coincide with your axes box edges.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Exploration in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!