How do I edit MATLAB plots, add subscripts, or Greek letters?
To add a subscript and some Greek letters to your figure title in MATLAB, you can use something like this: title(‘A_1 sin(\omega t + \phi)’); Just cut and paste the above into a MATLAB command window and you will see what it does. Greek letters must be preceded with a backslash, and you have to know their names (omega, phi, etc). You get a subscript by using the underscore. You can also add LaTeX formatting commands — this looks nicer and gives much more flexibility, but is more complicated. Assuming you have a plot window, you could use (again, just cut-and-paste) text(‘position’, [0.2 0.5], ‘HorizontalAlignment’, ‘center’, ‘fontsize’, 12, … ‘interpreter’, ‘latex’, ‘string’, ‘$$\sin ( 2\pi f t + \varphi )$$’); phi = 0.4; buf = sprintf(‘$$\\sin ( 2\\pi f t %+.2f)$$’, phi); text(‘position’, [0.6 0.5], ‘HorizontalAlignment’, ‘center’, ‘fontsize’, 12, … ‘interpreter’, ‘latex’, ‘string’, buf); There is also an online plot editor, just select View-Plot Edit Toolbar.