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

New to MATLAB?

Thread Subject:
Using Latex in GUI (subscript)

Subject: Using Latex in GUI (subscript)

From: Roberto

Date: 21 Sep, 2010 12:16:05

Message: 1 of 2

Good afternoon,

I have created a GUI in Matlab. I created some static text, and I inserted their names in the field 'String', in 'Property inspector'.

But I would like to use subscripts in their names, and I have heard something about using Latex, but I don't know how to enable and how to use it.

For example, if I want to write in 'String', the sampling frequency:
String: fs (but writing s like a subscript), how I can to do that??

Thank you very much.

Subject: Using Latex in GUI (subscript)

From: Yair Altman

Date: 21 Sep, 2010 18:35:20

Message: 2 of 2

> but then, I cannot either write pi or other symbols in a GUI? Because I need use Latex too.
>
> I cannot create a graph to write a text with it, because I only need text and values.


Here is another solution, that support [almost] the complete HTML set, including superscripts, subscripts and special symbols like pi:

http://UndocumentedMatlab.com/blog/customizing-matlab-labels/

Yair Altman
http://UndocumentedMatlab.com

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