Use default latex font in Plots (not OT but almost)

  • Follow


Dear all,
I'm struggling with a stupid question.
I have to create a plot to insert in one of my latex documents.

I do simply something like:
plot(x,y)
title('u_{11}')
set(gca,'FontName','name')
but I can't find the right attribute to use to have the same font
as the one used in the document. (in the latex document I write $u_{11}$)).
Can anyone help me in setting the correct font in Matlab title???

Cheers, -Luca
0
Reply Luca 11/5/2010 7:16:04 PM

In article <ib1l5k$g5v$1@fred.mathworks.com>,
 "Luca Cerone" <luca_cerone#_remove_this#@yahoo.it> wrote:

> Dear all,
> I'm struggling with a stupid question.
> I have to create a plot to insert in one of my latex documents.
> 
> I do simply something like:
> plot(x,y)
> title('u_{11}')
> set(gca,'FontName','name')
> but I can't find the right attribute to use to have the same font
> as the one used in the document. (in the latex document I write $u_{11}$)).
> Can anyone help me in setting the correct font in Matlab title???
> 
> Cheers, -Luca

You don't need to set the font, just use

  title('$u_{11}$','Interpreter','latex')

-- 
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.
0
Reply Doug 11/6/2010 1:14:25 AM


1 Replies
353 Views

(page loaded in 0.035 seconds)

Similiar Articles:










7/27/2012 2:37:52 AM


Reply: