Reputation: 823
In Matlab, I need to format a latex string containing a numeric variable. The string is like: foo1 , where 1 is contained in variable X and must be subscript.
This line works if I write directly the value of variable
str = texlabel('foo_{1}')
I'm wondering how to insert the X instead of the value. In fact this line
str = texlabel('foo_{X}')'
produce, of course, fooX Thanks
Upvotes: 1
Views: 1210