MATLAB: Live script to pdf without code output in the file

live scriptMATLAB

help urgent need.
how can i make a pdf of live script that only has text and code, but no code output
as i have inputet manually the code result (output) i dont want the code output in the pdf file.
can i block then or silece them some how
regards

Best Answer

If I clear the output in my live script (View > Clear all output), then use the export to pdf option (Live Editor > Save > Export to PDF), it only includes what I see in the live script. It does not run the code first.
Related Question