|
Doug Schwarz <see@sig.for.address.edu> wrote in message <see-FF7C81.22090518062009@news.frontiernet.net>...
> In article <h1er01$2bf$1@fred.mathworks.com>,
> "Juliette Salexa" <juliette.physicist@gmail.com> wrote:
>
> > Hi,
> >
> > I have absolutely no trouble labeling my x and y axes with equations:
> > xlabel('$\frac{1}{r^3}$','Interpreter','latex')
> >
> > But this doesn't work if I want to have equations for my LEGEND entries. Does
> > anyone know how to put an equation in the legend entries with latex ??
>
>
> Yes, for some reason you have to set the interpreter after the legend is
> created. For example,
>
> h = legend('$\frac{1}{r^3}$');
> set(h,'Interpreter','latex')
>
> --
> Doug Schwarz
> dmschwarz&ieee,org
> Make obvious changes to get real email address.
Thank you very much Schwarz, your answer also help me, and it solve my problem i was struggling for last few hours. thanks again
|