- Go to View tab, choose Hide code
- Go to Live Editor tab, export to PDF.
How do I save the output from a live script without saving the code?
35 次查看(过去 30 天)
显示 更早的评论
Hello!
I have a matlab live script that includes snippets of code - but I'd like to save the results of the live script without saving the code. Is this possible?
0 个评论
回答(2 个)
Trang Cao
2023-4-24
I had the same question and then figured out the answer.
0 个评论
Priyank Sharma
2018-4-3
My understanding is that you are trying to save the output to the base work space. If that is so, you can use the eval function to do the work for you. There is no need to save the script.
4 个评论
Serge Boisse
2018-10-31
编辑:Serge Boisse
2018-10-31
Yes! publish() is exactly what i meant. Have a look at "publish" and also "Output Preferences for Publishing" in the documentation. There is an "include code" option, so this is nice.
However, the "publish" tab is only available when you open a .m document, not .mlx So you need to save first your live script as .m, load the .m and publish it to pdf.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!