Printing live script without code part
69 views (last 30 days)
Yash Trivedi on 9 Jul 2018
The ' publish ' method allows the user to generate a view of the MATLAB file in a specified format. You could publish a file in the HTML or PDF format and then print the published file. The method allows the user to specify a 'showCode' option which is set to true by default but can be set to false. If set to false, it won't include the code in the published file.
Refer to the following documentation for the proper syntax - https://www.mathworks.com/help/matlab/ref/publish.html#btbskip-options