I assume you want to include it in your ylabel call.
This works:
ylabel(sprintf('\\theta %d', i));
The double \\ are necessary to get one of them to print correctly. (The leading \ operates as an ‘escape’ character.)
I assume you want to include it in your ylabel call.
This works:
ylabel(sprintf('\\theta %d', i));
The double \\ are necessary to get one of them to print correctly. (The leading \ operates as an ‘escape’ character.)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!