How to Publish matlab outout and code in pdf.
665 views (last 30 days)
Show older comments
Hello, How i can publish matlab output and code ".m file" into pdf format.
Thanks
1 Comment
Pratyay Sengupta
on 2 Jun 2021
I have a MATLAB code which generates a .txt file. Now I want to publish the code and the output text in a pdf format. Is it possible?
目前我只能发布th中的代码e pdf format, but not the output text with it.
Accepted Answer
madhan ravi
on 8 Sep 2018
Edited:madhan ravi
on 8 Sep 2018
Try this :
publish('myfile.m','pdf')
Remark: The default file format is .html
Read the link below for better understanding:
27 Comments
More Answers (3)
Alan Hernandez Ramirez
on 4 Feb 2020
bruh
dont use
publish('myfile.m','pdf') if youre using the matlab online version
it crashed my computer opening so many figue pages hahahaha
3 Comments
Walter Roberson
on 8 Sep 2018
"You specify the output format and location on the Publish settings pane. "
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!