Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: latex problem in textbox
Replies: 4   Last Post: Nov 3, 2009 3:49 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
ruud verschaeren

Posts: 32
Registered: 7/25/08
latex problem in textbox
Posted: Nov 2, 2009 6:25 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

hi all,

I want to put a latex table in the textbox of a figure. This all works fine but in the table I want to have a subscript where it says 'v_L' in the code below.

cs = '\begin{tabular}{lll} v_L&=&0.7 m/s\\ S&=&1.02 +- 0.01\\ t&=&16.67 sec \end{tabular}';
ha = annotation('textbox',[0.15 0.75 0.3 0.15], 'Interpreter', 'latex');
set(ha, 'String', cs);

the above code doesn't do a subscript but shows the underscore instead, similar I want the +- to change in the plus-minus sign. normal code for this would be /pm but inside the textbox this doesn't work.

Any help would be appreciated.
Ruud



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.