The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to convert numerical Matlab code into LaTeX?
Replies: 4   Last Post: Apr 28, 2014 6:14 AM

Advanced Search

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

Posts: 4
Registered: 4/25/14
How to convert numerical Matlab code into LaTeX?
Posted: Apr 25, 2014 9:01 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I have some numerical equations in Matlab that I need to type into LaTeX, but I cannot find an automatic way of doing this. I wanted a tool that transformed Matlab code like:

tauf = 200./(1+exp(-(V-15)/20));

into LaTeX, as in:

tauf = frac{200}{1+exp(-\frac{V-15}{20})} \\

I can find plenty of tools on Matlab File Exchange that format m-code so that you can insert it into LaTeX (not what I want) and also the Matlab latex() function in the Symbolic Maths package, which does not do it for me, as my equations are not symbolic.

Does anybody know of a tool/function that would suit my needs?

Many thanks,

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.