axis on plot not displaying
14 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Walter Roberson
2020-4-14
a = (1:100);
b = (a.^2);
plot(a,b)
xlabel('time')
ylabel('fish')
2 个评论
Walter Roberson
2020-4-14
Before that,
clear xlabel ylabel
just in case you still have the variables xlabel and ylabel stuck in your workspace.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!