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

147 vues (au cours des 30 derniers jours)
Dawj Alami
Dawj Alami le 8 Août 2017
Commenté : Ayush Joshi le 2 Oct 2021
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)

Réponse acceptée

KL
KL le 8 Août 2017
try with the backslash
xlabel('\theta')
read this for more
  2 commentaires
Dawj Alami
Dawj Alami le 8 Août 2017
It's very easy why I did not think about this stuff.. Oh, thanks it works very well
Ayush Joshi
Ayush Joshi le 2 Oct 2021
Thank you so much for this concise code to put in the symbol theta.

Connectez-vous pour commenter.

Plus de réponses (1)

José-Luis
José-Luis le 8 Août 2017
aH = axes;
plot(rand(10,1));
aH.XLabel.Interpreter = 'Latex';
aH.XLabel.String = '$\theta$';
  1 commentaire
Dawj Alami
Dawj Alami le 8 Août 2017
Thank you.. it works very well :)

Connectez-vous pour commenter.

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by