TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a figure in Matlab with axes that I would like to label with latex symbols like $\delta$ on the x axis and $\epsilon$ on the y axis. How can I place these LaTeX notations into the axis labels?

share|improve this question
3  
although tex and latex interpreter in matlab are not proper. try these xlabel('Symbol $\delta$','interpreter','latex'); and ylabel('Symbol $\epsilon$','interpreter','latex');. see xlabel doc. and What is the best way to include Matlab graphics? – texenthusiast Apr 5 '13 at 18:44
2  
If you're planning to export your figure for use in a LaTeX document, take a look at mathworks.de/matlabcentral/fileexchange/22022-matlab2tikz. – Nico Schlömer Sep 12 '13 at 16:53
    
Indeed, you can export matlab figures as tikz figures and add LaTeX expressions later. – Karlo Oct 30 '15 at 12:08

when plotting in Matlab, set the text interpreter to be latex:

Figure1=figure(1);clf;
set(Figure1,'defaulttextinterpreter','latex');
plot(...);
xlabel('$\delta$');
ylabel('$\epsilon$');
share|improve this answer
1  
set(0,'DefaultTextInterpreter', 'latex') – Andrestand Jul 20 '15 at 11:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.