MATLAB: How to write a fraction in xlabel.

xlabel

dear all, I want to write a fraction a over b in the xlabel. How to do that? thanks
if true
%
figure (1)
fig =figure(1);
plot(t,real(y)'-x')
title('Mutual inductance M at frequency of 0.159 GHz','FontSize',18,'FontWeight','bold')
xlabel ??????????????????????????????????????????????????????????????????????????????????????????
ylabel('Inductance (nH)','FontSize',18,'FontWeight','bold')
set(fig,'position',[500 300 800 600]);
grid on
end

Best Answer

The easy way:
xlabel('^{a}/_{b}')
The more difficult way requires you to call the 'latex' interpreter and use LaTeX commands. See the link for the LaTeX documentation.
Related Question