How to publish (download) my MATLAB code and plots as pdf?

I want to publish (download) my matlab code and plots as pdf. I use matlab online and want to download on desktop. Earlier there was a publish tab but in new version it's not there. Can someone help?

Answers (1)

If you're working with a traditional MATLAB file (.m file), then you should see a "PUBLISH" tab.
If you're working with a Live Script, then you can export to a PDF from the Save button.

5 Comments

how to publish with line numbers
My MatLab looks nothing like this!! NOT HELPFUL!!
What version of MATLAB are you using?
version
24.1.0.2689473 (R2024a) Update 6
how to publish into a pdf with line numbers included.

Sign in to comment.

Categories

Asked:

on 4 Jul 2021

Commented:

on 26 Dec 2024

Community Treasure Hunt

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

Start Hunting!