Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
sub and spuer script in graphs

Subject: sub and spuer script in graphs

From: Dave

Date: 1 Aug, 2009 17:45:20

Message: 1 of 3

hi,

is there any way for getting sub and superscript in axis labels for graphs?

Dave

Subject: sub and spuer script in graphs

From: dpb

Date: 1 Aug, 2009 17:49:50

Message: 2 of 3

Dave wrote:
> hi,
>
> is there any way for getting sub and superscript in axis labels for graphs?

Yeah, look for "string property" in label() doc for available TeX
sequences interpreted...

--

Subject: sub and spuer script in graphs

From: Faraz Afzal

Date: 1 Aug, 2009 20:34:03

Message: 3 of 3

"Dave " <yogi_cave@yahoo.com> wrote in message <h51uvf$k39$1@fred.mathworks.com>...
> hi,
>
> is there any way for getting sub and superscript in axis labels for graphs?
>
> Dave

Hi Dave...

Yeah its sternly simple..... U need no to set the interpreter to any suff unless u want set all the fonts and places and other bla bla by latex...

just go for this...

for example
 
xlabel(' 'plot of \phi^2)

it will form superscript.. all u ahve to use is a backslash...

for subscript u will do this..

xlabel('i m writing subscript t as \phi_t')
OR
legend('plot of \phi_d')

I hoep it helps.... but if u r using some stuff like english alphabets then u might have to add option of setting the interpreter...

i hope it helps..

Faraz

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us