Printing live script without code part

34 ビュー (過去 30 日間)
alpedhuez
alpedhuez 2018 年 7 月 8 日
コメント済み: Daniel Holstein 2019 年 9 月 25 日
Is it possible to print a live script file without code so that readers can get output and graphics (but not code)?

回答 (2 件)

Kevin Chng
Kevin Chng 2019 年 3 月 27 日
Untitled.png
In 2019a, it allows you to hide the code before exporting.
  1 件のコメント
Daniel Holstein
Daniel Holstein 2019 年 9 月 25 日
Is there a way to show some code sections, but not others? I am a professor, and sometimes I want to give a code snippet as an example, and then show (for example) a plot I want students to replicate, but I don't want to give them the answer... Thanks!

サインインしてコメントする。


Yash Trivedi
Yash Trivedi 2018 年 7 月 9 日
Hi,
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

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by