How to Publish matlab outout and code in pdf.
400 次查看(过去 30 天)
显示 更早的评论
Hello, How i can publish matlab output and code ".m file" into pdf format.
Thanks
1 个评论
Pratyay Sengupta
2021-6-2
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?
Currently I am able to publish only the code in the pdf format, but not the output text with it.
采纳的回答
madhan ravi
2018-9-8
编辑:madhan ravi
2018-9-8
Try this :
publish('myfile.m','pdf')
Remark: The default file format is .html
Read the link below for better understanding:
27 个评论
更多回答(4 个)
Alan Hernandez Ramirez
2020-2-4
bruh
dont use publish('myfile.m','pdf') if youre using the matlab online version
it crashed my computer opening so many figue pages hahahaha
Walter Roberson
2018-9-8
"You specify the output format and location on the Publish settings pane. "
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Function Creation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!