Example of Use of Latex in Matlab:

% Use of latex. T. Pavlic

t = linspace(0,2,200);
plot( t, exp(-t) );
set( get( gca, 'XLabel' ), 'Interpreter', 'latex' );
set( get( gca, 'YLabel' ), 'Interpreter', 'latex' );
xlabel('$$\dot{\Theta}$$');
ylabel('$$\mathcal{U}$$');

text('Interpreter','latex',...
'String','$$\int_0^x\!\int_y dF(u,v)$$',...
'Position',[1.2 0.8],...
'FontSize',16)

leg_fig = legend( '$$\sum\limits_{i=1}^n i^2 \times \mathcal{U} \times \mathcal{P}^*$$', 3 );
set( leg_fig, 'Interpreter', 'latex' );