Labels not showing up on Graphs

조회 수: 72 (최근 30일)
Jason
Jason . 2014년 12월 12일
댓글: Jason . 2014년 12월 12일
This has been driving me crazy all morning. for some reason, my request to label an axes isn't working:
Yet, from the command window below, the strings are being assigned - they are just not showing up on the graph.

채택된 답변

Robert Cumming
Robert Cumming 2014년 12월 12일
편집: Robert Cumming 님. 2014년 12월 12일
you are creating variables called xlabel and ylabel, you need to do:
xlabel ( gTitles(1) )
ylabel ( gTitles(2) )
or better use the axes handle:
xlabel ( handles.axes1, gTitles(1) )
ylabel ( handles.axes1, gTitles(2) )
Note: You will need to clear the variables you created by mistake.
  댓글 수: 1
Jason
Jason 2014년 12월 12일
Oh yes, the equals sign...Should have spotted it. Thankyou very much. Jason

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-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