Indicate mean with a bar in Matlab

  • Context: MATLAB 
  • Thread starter Thread starter Old Guy
  • Start date Start date
  • Tags Tags
    Matlab Mean
Click For Summary
SUMMARY

The discussion focuses on adding a LaTeX-style mean bar notation, specifically \bar \xi, as an axis label in MATLAB plots. The user attempted to use the command xlabel('$\bar{\xi}$', 'interpreter', 'latex') but faced challenges when trying to modify a .fig file through the property editor. The inability to save changes after generating code indicates a need for a more effective approach to editing figure properties in MATLAB.

PREREQUISITES
  • Familiarity with MATLAB plotting functions
  • Understanding of LaTeX syntax for mathematical notation
  • Experience with MATLAB figure (.fig) file management
  • Knowledge of MATLAB property editor functionalities
NEXT STEPS
  • Explore MATLAB documentation on xlabel and LaTeX interpreter usage
  • Learn about editing .fig files programmatically in MATLAB
  • Investigate MATLAB's property editor features for figure customization
  • Review best practices for saving modifications in MATLAB figures
USEFUL FOR

This discussion is beneficial for MATLAB users, data analysts, and researchers who need to customize plot labels with mathematical notation, particularly those working with figure files and LaTeX formatting.

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
[tex]\bar \xi[/tex]
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 ·
2
Replies
32
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
5
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 7 ·
Replies
7
Views
2K