Got Questions? Get Answers.
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:
italics and subscript

Subject: italics and subscript

From: J G

Date: 5 Apr, 2011 22:12:05

Message: 1 of 3

I was working with a 2010 version of matlab and when setting the xlabel, this worked:

set(gca,'XTickLabel',{'{\itv}_1_1','{\itv}_2_1','{\itv}_3_1' )

which made the 'v' in italics and the numbers in subscript. However now I'm using the 2009a version and it doesn't work. Any ideas?
Thanks.

Subject: italics and subscript

From: J G

Date: 5 Apr, 2011 23:45:23

Message: 2 of 3

I should be more clear - I want to format the xticklabels, not the xlabels. Any way to do this?
Thanks.

Subject: italics and subscript

From: J G

Date: 6 Apr, 2011 00:21:04

Message: 3 of 3

Figured it out. I downloaded format_ticks.m which worked well.

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