MATLAB Indicate mean with a bar in Matlab

  • Thread starter Thread starter Old Guy
  • Start date Start date
  • Tags Tags
    Matlab Mean
AI Thread Summary
To label an axis in a MATLAB plot with the notation \bar \xi, the correct approach involves using the xlabel function with LaTeX interpreter. The syntax should be xlabel('$\bar{\xi}$', 'Interpreter', 'latex'). However, challenges arise when attempting to modify an existing .fig file using the property editor. Users report difficulties in saving changes after generating code and modifying it. Suggestions include ensuring that the figure is not locked or read-only and considering alternative methods for editing the figure, such as directly modifying the properties in the command window or recreating the figure with the desired labels from scratch.
Old Guy
Messages
101
Reaction score
1
I want to put the following as an axis label on a plot, but I cannot figure out how to get the bar on top in Matlab
\bar \xi
Thanks.
 
Physics news on Phys.org
Code:
xlabel('$\bar{\xi}$'[/color], 'interpreter'[/color], 'latex'[/color]);
replacing xlabel with whatever label it is.
 
Thanks for your help, but I could not get this to work because I am trying to change a .fig file in the property editor. I tried generating the code, and then making the modification there, but I was unable to save as .fig after that. Any suggestions?
 

Similar threads

Replies
32
Views
4K
Replies
5
Views
2K
Replies
8
Views
2K
Replies
5
Views
3K
Replies
10
Views
3K
Replies
9
Views
5K
Back
Top