MATLAB: How to add bar above a letter in xlabel

xlabel bar

I want to add a bar above the letter U (i.e. a horizontal line above the letter). Why will Matlab not accept xlabel('\bar{U}','Interpreter','Latex')? The output is Warning: Error updating Text.
Character vector must have valid interpreter syntax:
\bar{U}
Is it because there is no bar command in Matlab?

Best Answer

xlabel('$\bar{U}$','Interpreter','Latex')