MATLAB: How to create a ylabel with an hbar (i.e. h/2pi)

constantsphysical constantsphysicsquantum

I have tried the following: ylabel('hbar\omega (meV)'); ylabel('\hbar\omega (meV)') and ylabel('\hbar\omega (meV)', 'Interpreter', 'latex')

Best Answer

You left out the beginning and ending $'s.
Try this:
ylabel('$\hbar\omega (meV)$', 'Interpreter', 'latex')
Related Question