How can I write a forward slash in a label
Afficher commentaires plus anciens
I tried to write forward slash in the label of an axes.
here is the code:
ylabel('\alpha-helix fold induction (TFE / H_2O)')
In the plot it results in a fraction bar. How can I write a forward slash?
I think i as something in common with the _ for the H2O. Because also when i removed the / the label is not nice displayed.
1 commentaire
Image Analyst
le 1 Sep 2015
I'm not sure what you mean. The slash between the E and the H? It's a forward slash for me, see:

Is that not what you want?
Réponses (1)
Walter Roberson
le 1 Sep 2015
0 votes
You can use the same technique as for underscores in latex: http://www.mathworks.com/matlabcentral/newsreader/view_thread/54919
3 commentaires
Joas Landis
le 1 Sep 2015
Image Analyst
le 1 Sep 2015
What do you mean by "index"? And can you give an image of how you want it to look, like I did above?
Walter Roberson
le 1 Sep 2015
Which MATLAB are you using? There was a similar problem in R2008b for some platforms. If you are using R2014b or later, then possibly http://www.mathworks.com/matlabcentral/answers/159732-2014b-axis-label-errors-when-printing-to-postscript will help.
Catégories
En savoir plus sur Axis Labels dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!