MATLAB Answers

I need to have underline (_) in my plot x and y label but matlab plot recognizes as subscript

When I used this command:
xlabel(Ratio_prolif),
p of prolif becomse as subscript in the plot.
Is there anyway to have underline without being translated to subscript?
Here they discussed how _ is denoted as subscript in matlab:
but I dont want it.

  댓글 수: 0

로그인 to comment.

태그

답변 수: 1

John D'Errico 님의 답변 9 Oct 2019
John D'Errico 님이 편집함. 9 Oct 2019
 채택된 답변

They can't win. Some people want to have subscripts. Some want an actual underscore character. Nobody is ever happy.
xlabel 'x\_5'
That will show the label as x_5. NOT a subscript.
untitled.jpg

  댓글 수: 1

로그인 to comment.



Translated by