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:
subscripts using 'text' function

Subject: subscripts using 'text' function

From: Fabio Luna

Date: 30 Apr, 1998 16:01:50

Message: 1 of 2

Hi,

Anybody knows how to add subscripts within a string to a figure using
the 'text' function? I have looked for it and found only how to add
superscripts -- using the caret symbol, as in text(x,y,'x^2').

Thanks in advance!

Subject: subscripts using 'text' function

From: daf@mathworks.com (David Foti)

Date: 30 Apr, 1998 14:30:22

Message: 2 of 2

For subscripts, use '_' (underscore) as in text(x,y,'x_2');

Fabio Luna (fabio@ket.kth.se) wrote:
: Anybody knows how to add subscripts within a string to a figure using
: the 'text' function? I have looked for it and found only how to add
: superscripts -- using the caret symbol, as in text(x,y,'x^2').

--
-----------------------------------------------------
Dave Foti daf@mathworks.com
The MathWorks, Inc.
24 Prime Park Way
Natick, MA 01760 http://www.mathworks.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