Publishing functions without command window text.

I am trying to publish a set of functions to an HTML file. The functions all produce plots, as well as several pages of code in the command window. When I publish the set of functions to the HTML file, I would like to keep the .m code and the plot, but not the pages of "plot code". How can I do this?

回答 (1 件)

jeremyn horsley
jeremyn horsley 2015 年 9 月 13 日

0 投票

I found the solution. It was simply a semi-colon at the end of the line that calls the function. This prevents all of the plotting code, while still being able to publish the actual function code in the HTML file.
lab1_1;

1 件のコメント

Stephen23
Stephen23 2015 年 9 月 13 日
編集済み: Stephen23 2015 年 9 月 13 日
You might like to do these tutorials, which are an excellent introduction to MATLAB, and covers this kind of fundamental topic:

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

カテゴリ

ヘルプ センター および File ExchangeScripts についてさらに検索

質問済み:

2015 年 9 月 6 日

編集済み:

2015 年 9 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by