Tags: class, display, figure, iam, init, matlab, programming, subscripts, text

Subscripts

On Programmer » Matlab

1,396 words with 1 Comments; publish: Sun, 18 May 2008 19:07:00 GMT; (200139.65, « »)

I'm very new to Matlab (just started my first class last w) and I

am trying to figure out how to display text that has subscripts in

it. I've looked around and I know how to make titles on graphs that

have subscripts, but I don't know how to just have it displayed as

text.

What I'm trying to do exactly is have the screen print a system of

equations:

2x1 + 3x2 + 4x3 = 20

...

...

And what i'm having trouble with is getting those numbers after the x

(1,2,3 etc) into subscript text so that it appears that way on the

screen when displayed.

Any help would be greatly appreciated. :)

All Comments

Leave a comment...

  • 1 Comments
    • You need to be a bit more precise in what you're asking help for.

      You say that what you want to do "exactly" is: ".. have the screen

      print...".

      But the screen cannot print anything either exactly or not.

      You can print TO the screen or FROM the screen, but the screen itself

      cannot do this.

      Let's assume you want to print TO the screen. But do you want to print

      to a figure or the Command Window or what? If it's a figure, then go

      'help text' and use the same method you used for title to get

      subscripts, but if it's the Command Window you want to print subscripts

      to, then I think you're out of luck.

      #1; Sun, 18 May 2008 19:09:00 GMT