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.

 採用された回答

Subhadeep Koley
Subhadeep Koley 2020 年 12 月 30 日

0 投票

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 件のコメント

Catarina
Catarina 2020 年 12 月 30 日
Thank you so much, works perfectly!

サインインしてコメントする。

その他の回答 (0 件)

タグ

質問済み:

2020 年 12 月 29 日

コメント済み:

2020 年 12 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by