Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Matlab中使用条形符号显示值的平均值_Matlab_Plot_Label - Fatal编程技术网

在Matlab中使用条形符号显示值的平均值

在Matlab中使用条形符号显示值的平均值,matlab,plot,label,Matlab,Plot,Label,我想使用条形符号(变量上方的一条线)来显示变量的平均值。我发现这个代码: plot(randn(100,1)); ylabel('$\bar{ABCDEFG}-T5$','interpreter','latex') 但这条线很小。有没有办法使其与变量的长度相同?如何: ylabel('$\overline{ABCDEFG}-T5$', 'interpreter','latex') 我发现在我们应该说的传说中使用它 legend({'$\overline{ABCDEFG}-T5$'},'i

我想使用条形符号(变量上方的一条线)来显示变量的平均值。我发现这个代码:

plot(randn(100,1)); 
ylabel('$\bar{ABCDEFG}-T5$','interpreter','latex') 
但这条线很小。有没有办法使其与变量的长度相同?

如何:

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

我发现在我们应该说的传说中使用它

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

哦,谢谢,太完美了!只有一件事如果我想把它写进传奇我该怎么做?