Cut and paste Matlab coding into Latex for equations

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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: