axis on plot not displaying
4 views (last 30 days)
Show older comments
Holden Earl
on 14 Apr 2020
Commented: Holden Earl
on 14 Apr 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 Comments
Accepted Answer
Walter Roberson
on 14 Apr 2020
a = (1:100);
b = (a.^2);
plot(a,b)
xlabel('time')
ylabel('fish')
2 Comments
Walter Roberson
on 14 Apr 2020
Before that,
clear xlabel ylabel
just in case you still have the variables xlabel and ylabel stuck in your workspace.
More Answers (0)
See Also
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!