![untitled.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/241750/untitled.jpeg)
I need to have underline (_) in my plot x and y label but matlab plot recognizes as subscript
50 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Zeynab Mousavikhamene
il 9 Ott 2019
Commentato: Zeynab Mousavikhamene
il 9 Ott 2019
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 Commenti
Risposta accettata
John D'Errico
il 9 Ott 2019
Modificato: John D'Errico
il 9 Ott 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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/241750/untitled.jpeg)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Annotations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!