entering a space that survives the latex interpreter

26 views (last 30 days)
Leo Simon
Leo Simon on 16 Aug 2020
Answered: Star Strider on 16 Aug 2020
I'm trying to include blank spaces in the title to a plot. When I run the title string through the latex intepreter, it kills the spaces. Example below illustrates
Is there a way to prevent this? Thanks very much, Leo
Title='$\theta$ .';

Accepted Answer

Star Strider
Star Strider on 16 Aug 2020
Try this:
Title=sprintf('$\\theta%s.$', repmat('\ ',1,37));
It may not be the most efficient option, however it appears to do what you want.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!