MATLAB Answers


How can I create index for a word in legend?

Asked by laleh
on 1 May 2013

Hi When I wrote legend(' Gamma_xz') only x goes to index. However I want that both xz goes to index of the word Gamma.

In other word, in legend, if I want to write (x sub i)I could write (x_i) then 'i' will go to index but if my index has more than one character like (x sub ij), than only the first charter will appear as index . I would be appreciated if you guide me how can I fix it.



No products are associated with this question.

1 Answer

Answer by Azzi Abdelmalek
on 1 May 2013

legend(' Gamma_x_z')


Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!