MatLab - how to put an exponent on xlabel

0

Good afternoon. I want to put the units of m ^ (- 1) on xlabel.

f=[40.82,52.63,75.80];
inversoL=[1/0.730,1/0.600,1/0.400];
coeficientes=polyfit(inversoL,f,1)
f_est=coeficientes(1).*inversoL+coeficientes(2);
plot(inversoL,f,'kd-');
hold on;
plot(inversoL,f_est, 'ro-');
title('Frequência em função do inverso do comprimento da corda','FontSize', 16); 
xlabel('Inverso do comprimento da corda m^(-1)','FontSize', 16,'Color','k');

The problem is that only the curved parenthesis is that it is in exponent, and I wanted to use the units of the inverse of the meter or m ^ (- 1). Thank you to anyone who can help.

    
asked by anonymous 12.03.2017 / 21:44

1 answer

0

I have already found the solution. The code is the same, only this line changes:

xlabel('Inverso do comprimento da corda m^{-1}','FontSize', 16,'Color','k');
    
12.03.2017 / 21:55