I am plotting some data which includes estimates of some parameters. I want to describe the estimates by using \hat on the parameter symbols. This I have o do in legends and axis labels fields. I could not fix this matter despite some experiments using information from MATLAB help. Any idea, please to fix this problem.
I really appreciate help on this matter which will improve the look of my presentation.
No products are associated with this question.
Try with Latex interpreter, something like
title(['$ latex $'],'interpreter','latex')
......... Its done! Actually, the default interpreter in MATLAB for legend is 'tex', I guess. It is not changed from the code line. What I had to do was to right click on the legend in the figure window and then changed the 'interpreter' from 'tex' to 'latex'. This action changed the latex statement in the legend field to Math mode.
To use the full LaTeX interpreter, you can specify it as a parameter:
Note that for legend, you need to use pass in you labels as a cell array to distinguish them from the parameters: