Instead of clicking 'publish', I want to write a code for it which makes use of saved settings. How?

I've edited 'publishing settings' for a certain code to output a PDF file and to not include code, I've saved these settings under the name 'clinical report', and now I'd like to enter a CODE into my report that executes this, instead of manually clicking 'publish'. Does anybody have any idea?
Thanks in advance

 採用された回答

per isakson
per isakson 2014 年 3 月 19 日

2 件のコメント

Golnar
Golnar 2014 年 3 月 20 日
編集済み: Golnar 2014 年 3 月 20 日
Is this the sequence in which the code should be written? When I run this I get a recursive run but nothing published.
options_doc_nocode.format = 'pdf'; options_doc_nocode.showCode = false; publish('clinicalreport.m',options_doc_nocode);
Yes!
I replaced your m-file, clinicalreport.m, by fourier_demo2.m. It produces a pdf-file without m-code
copyfile(fullfile(matlabroot,'help','techdoc',...
'matlab_env','examples','fourier_demo2.m'),'.','f')
function_name = 'fourier_demo2.m';
options_doc_nocode.format = 'pdf';
options_doc_nocode.showCode = false;
publish( function_name, options_doc_nocode );
I assume the problem is in clinicalreport.m.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で MATLAB Report Generator についてさらに検索

質問済み:

2014 年 3 月 19 日

コメント済み:

2014 年 3 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by