필터 지우기
필터 지우기

axis on plot not displaying

조회 수: 2 (최근 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 CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by