MATLAB Answers

Labels not showing up on Graphs

조회 수: 110(최근 30일)
Jason
Jason 12 Dec 2014
댓글: Jason 12 Dec 2014
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.

  댓글 수: 0

로그인 to comment.

채택된 답변

Robert Cumming
Robert Cumming 12 Dec 2014
편집: Robert Cumming 12 Dec 2014
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 12 Dec 2014
Oh yes, the equals sign...Should have spotted it. Thankyou very much. Jason

로그인 to comment.

추가 답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.

태그


Translated by