How do I convert matlab file to pdf

2 285 views (last 30 days)
I write code in matlab and then ı want to convert pdf, doc or doc x . How can I do this .
  2 Comments
madhan ravi
madhan ravi on 29 Mar 2020
You maybe looking for publish()
doc publish
MIN
MIN on 28 Oct 2023
Moved: Rik on 29 Oct 2023
I don't want to include picture....how can I do that?

Sign in to comment.

Accepted Answer

Cris LaPierre
Cris LaPierre on 30 Mar 2020
If you are using a live script, the is an "Export to pdf" option in the Save menu on the home tab. Click the down arrow to expand the menu to see this and other options.
  3 Comments
Arujan Rajadurai
Arujan Rajadurai on 10 Oct 2020
How about if I'm just using a script (not live), is there a way to print my script as a pdf?
Thank you!
Cris LaPierre
Cris LaPierre on 10 Oct 2020
Edited: Cris LaPierre on 10 Oct 2020
Use the publish function.
publish('script.m','pdf')
You should also see a Publish tab when viewing a *.m script in the editor. Follow these steps to use a graphical approach.

Sign in to comment.

More Answers (0)

Categories

Find more on Scripts 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!