フィルターのクリア

Using MATLAB Publishing and Publishing Mark-Up, can I call my functions in the mark-up to limit the amount of code being published?

4 ビュー (過去 30 日間)
I'm trying to write a script to run and output all of the figures and analysis (being output the the command window in strings) that will be published and exported to a designated folder as a PDF. Is there a way to do it so there is only a limited amount or no amount of code that gets published to the final document but still shows all the figures and outputs?
I'm using MATLAB online so diary is not an option sadly.
Any ideas?

回答 (2 件)

Roberto Herrera-Lara
Roberto Herrera-Lara 2017 年 8 月 8 日

Neil Guertin
Neil Guertin 2017 年 8 月 10 日
You can use the "publish" function with the 'showCode' option
publish('myScript.m','format','pdf','showCode',false)
You may also be interested in some of the other options available with the "publish" function. See the documentation page for more information.

コミュニティ

カテゴリ

Help Center および File ExchangePlatform and License についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by