axis on plot not displaying
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Holden Earl
le 14 Avr 2020
Commenté : Holden Earl
le 14 Avr 2020
a = (1:100);
b = (a.^2);
plot(a,b)
xlabel = 'time';
ylabel = 'fish';
I have tried using "xlabel('time');" but nothing seems to work, the graph will display and no error will be shown but the labels wont come up?
0 commentaires
Réponse acceptée
Walter Roberson
le 14 Avr 2020
a = (1:100);
b = (a.^2);
plot(a,b)
xlabel('time')
ylabel('fish')
2 commentaires
Walter Roberson
le 14 Avr 2020
Before that,
clear xlabel ylabel
just in case you still have the variables xlabel and ylabel stuck in your workspace.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Axis Labels 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!