Cut and paste Matlab coding into Latex for equations

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 5K views
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 [itex]\LaTeX[/itex] markup from a MATLAB symbolic object.
 
Last edited by a moderator: