Feed on
Posts
Comments

manually writing out matlab matrices in latex is really tedious. here’s how to save yourself the time:

assume you have some matrix L

>> s = sym(L);
>> v = vpa(s,5); # assign numerical precision
>> latex(v)

matlab should now spit out the latex source code that you can directly copy into your .tex file.

Stumble it!

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

One Response to “insert a matlab matrix into latex automatically”

  1. on 24 Jun 2008 at 8:25 am Soumya

    Could you help me in inserting a matrix within a line…all my efforts are producing the matrix in the next line. Thanks in advance.

Did I get this wrong? Let me know!

Trackback URI | Comments RSS

More blogs about http://desk.stinkpot.org:8080/tricks.