PDF Latex file using Matlab

76 views (last 30 days)
Catarina
Catarina on 29 Dec 2020
Commented: Catarina on 30 Dec 2020
How can I create a PDF Latex file with the code I've written on Matlab?
I've written my code and now I wanted to create a file, using Matlab where my code would appear, similarly to what happens with KnitR using R programming language.
Thank you.

Accepted Answer

Subhadeep Koley
Subhadeep Koley on 30 Dec 2020
Copy and paste your code into a new Live Script. In the Live Editor tab, select Export > Export to LaTeX.
MATLAB will also automatically create a separate LaTeX Style Documents "matlab.sty" file in the same folder as the output document.
  1 Comment
Catarina
Catarina on 30 Dec 2020
Thank you so much, works perfectly!

Sign in to comment.

More Answers (0)

Categories

Find more on Live Scripts and Functions in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!