Display Symbolic data at graph title

I would like to display on a Graph title a symbolic data input For expample:
The program asks for 5 inputs . Ι enter in a for loop: 0,π,π/2,3π/4,π to the variable phi. I want to show to the title of each subplot the values i entrer. I tried the sym(phi) function but i can't implement the result to the title of the subplots
My question is how to show which input coresponds to the respective sublot

 Accepted Answer

I would use the Symbolic Math Toolbox latex function, then specify 'Interpreter','latex' in the plot title name-value pair argument list.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!