How to include external code when publishing?

I'm trying tu “publish” a script including the code of the called functions/scripts in pdf. I found “publishdepfun” which produces nice html files but not really working with pdf.
As I know it should be possible to include those files in this way:
%
% <include>file1.m</include>
%
But this is not working for some reason. In the pdf file this results then in:
include>file1.m</include
What can I do?

답변 (1개)

Paul Wintz
Paul Wintz 2022년 2월 11일

0 개 추천

You must have no more than one space between "%" and "<include>". Having spaces before the "%" might also cause problems, so change " % <include>file1.m</include>" to "% <include>file1.m</include>".

카테고리

도움말 센터File Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

제품

태그

질문:

2016년 2월 4일

답변:

2022년 2월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by