Help, How can I write the symbol " theta" in Matlab

조회 수: 76 (최근 30일)
Dawj Alami
Dawj Alami 2017년 8월 8일
댓글: Ayush Joshi 2021년 10월 2일
Hi friends, I have a problem with a graphical presentation of my results in Matlab. I will write a symbol theta  on the Y axis ( Dimensionless temperature ) but when I put it in my code it will show me "?" I don't know why...! Besides, I searched on the internet, ho, someone tells me that I have to use the code "Asci" but I don't know how doing it. ??? help me please
program figure(7); plot(x,TF,'-r','linewidth',1.5) hold on plot(x,TS,'-k','linewidth',1.5) xlabel('length ','FontSize',12) ylabel('Dimensionless temperature ','FontSize',12) legend('Thetaf','Thetas',1)

채택된 답변

KL
KL 2017년 8월 8일
try with the backslash
xlabel('\theta')
read this for more
  댓글 수: 2
Dawj Alami
Dawj Alami 2017년 8월 8일
It's very easy why I did not think about this stuff.. Oh, thanks it works very well
Ayush Joshi
Ayush Joshi 2021년 10월 2일
Thank you so much for this concise code to put in the symbol theta.

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

추가 답변 (1개)

José-Luis
José-Luis 2017년 8월 8일
aH = axes;
plot(rand(10,1));
aH.XLabel.Interpreter = 'Latex';
aH.XLabel.String = '$\theta$';

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by