Label the scales-plot
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello!!! I want to plot a graph of a given function in MATLAB..
Is it possible to label the scales in powers of 2?
0 commentaires
Réponses (1)
the cyclist
le 2 Avr 2015
Modifié(e) : the cyclist
le 2 Avr 2015
figure
plot(2.^(5*rand(1,100)),rand(1,100),'.');
set(gca,'XTick',2.^[0:5])
If you want the labels to be the powers, rather than the numbers themselves, then add the line
set(gca,'XTickLabel',0:5)
0 commentaires
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!