axis on plot not displaying

1 回表示 (過去 30 日間)
Holden Earl
Holden Earl 2020 年 4 月 14 日
コメント済み: Holden Earl 2020 年 4 月 14 日
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?

採用された回答

Walter Roberson
Walter Roberson 2020 年 4 月 14 日
a = (1:100);
b = (a.^2);
plot(a,b)
xlabel('time')
ylabel('fish')
  2 件のコメント
Walter Roberson
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.
Holden Earl
Holden Earl 2020 年 4 月 14 日
Got it now, thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by