Showing average of a value using Bar sign in Matlab

I want to use bar sign (a line above a variable) to show the average of a variable. I found this code:

plot(randn(100,1)); 
ylabel('$\bar{ABCDEFG}-T5$','interpreter','latex') 

but this line is small. Is there a way to make it same as length of the variable?

Answers


How about:

ylabel('$\overline{ABCDEFG}-T5$', 'interpreter','latex')


I found out for using it in legend we should say

legend({'$\overline{ABCDEFG}-T5$'},'interpreter','latex');

Need Your Help

In ASA stored procedure how to view the existing SP using commands

sybase-asa

In ASA database What is the command to view the existing stored procedure code in command prompt?

vertical align to the bottom of chat page and page scroll

javascript html css ajax

I am creating a chat application with AJAX and PHP. I have successfully been able to get the chats aligned at the bottom of the div in which chats appear. When new messages are loaded, the messages...