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:
graph lable

Subject: graph lable

From: J G

Date: 21 Sep, 2010 05:15:09

Message: 1 of 3

Is there a way to insert a symbol into an axis lable? I want the y-axis to be labelled p(cap) (p^ but the ^ should sit above the p). I can write this in Word using the equation editor, but is there any way to lable my graph with this? Thanks for your help.

Subject: graph lable

From: Yair Altman

Date: 21 Sep, 2010 16:43:24

Message: 2 of 3

"J G" <jemma.geoghegan@gmail.com> wrote in message <i79f0s$515$1@fred.mathworks.com>...
> Is there a way to insert a symbol into an axis lable? I want the y-axis to be labelled p(cap) (p^ but the ^ should sit above the p). I can write this in Word using the equation editor, but is there any way to lable my graph with this? Thanks for your help.

Simply use the ^ symbol in your label, and this will happen automatically. For example:

ylabel('Acceleration [m/sec^2]')

Yair Altman
http://UndocumentedMatlab.com

Subject: graph lable

From: J G

Date: 22 Sep, 2010 04:15:22

Message: 3 of 3

Thanks. I'm not sure that actually does what I want though. I need the letter p with a ^ sitting above the letter...


"Yair Altman" <altmanyDEL@gmailDEL.comDEL> wrote in message <i7anbc$7lo$1@fred.mathworks.com>...
> "J G" <jemma.geoghegan@gmail.com> wrote in message <i79f0s$515$1@fred.mathworks.com>...
> > Is there a way to insert a symbol into an axis lable? I want the y-axis to be labelled p(cap) (p^ but the ^ should sit above the p). I can write this in Word using the equation editor, but is there any way to lable my graph with this? Thanks for your help.
>
> Simply use the ^ symbol in your label, and this will happen automatically. For example:
>
> ylabel('Acceleration [m/sec^2]')
>
> Yair Altman
> http://UndocumentedMatlab.com

Tags for this Thread

No tags are associated with 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