How can I write a forward slash in a label
9 views (last 30 days)
Show older comments
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 Comment
Image Analyst
on 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?
Answers (1)
Walter Roberson
on 1 Sep 2015
You can use the same technique as for underscores in latex: http://www.mathworks.com/matlabcentral/newsreader/view_thread/54919
3 Comments
Image Analyst
on 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
on 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.
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!