axis on plot not displaying
조회 수: 2 (최근 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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!