MATLAB: Legend symbol overbar

legendoverbarsymbol [~]

Hi,
I am trying to include a single letter with an 'over-bar' after the percentage sign in the following code for a legend on a plot:
legend('CG = 33.46%','string2' )
If anyone has an idea of how to do this, then that would be really great.
Thanks,
Robbie

Best Answer

plot(1:10)
h = legend('$$\overline{x}$$')
set(h,'Interpreter','latex','fontsize',24)