MATLAB Cut and paste Matlab coding into Latex for equations

AI Thread Summary
A user inquires about a LaTeX package that allows for easy integration of MATLAB or Excel code into LaTeX documents, specifically seeking a way to input equations without manually formatting them in LaTeX syntax. A helpful response points to a MATLAB function that generates LaTeX markup from MATLAB symbolic objects, providing a solution for converting equations directly into the desired format. This tool can streamline the process of including mathematical expressions in reports, enhancing efficiency for users who frequently work with equations.
engineer888
Messages
9
Reaction score
0
Hi guys,

I have to do a lot of equations in a report, and I was wondering if there is a package for Latex so that I can just cut and paste matlab/excel coding straight into Latex and it will set it out properly. i.e. so that instead of typing \frac{5+x}{4} I can just write (5+x)/4?
 
Physics news on Phys.org
This might not be exactly what you are looking for, but the http://www.mathworks.com/help/toolbox/symbolic/latex.html" MATLAB function will generate \LaTeX markup from a MATLAB symbolic object.
 
Last edited by a moderator:

Similar threads

Back
Top