Publish script using AppDesigner

조회 수: 11 (최근 30일)
Amit Levy
Amit Levy 2020년 8월 16일
답변: Prabhanjan Mentla 2020년 8월 19일
Hi,
Im working with app designer and save all the information under app properties.
While trying to Publish a report (using publish command) it yields the following error: Unable to resolve the name app.VaribleName
It seems that the script im trying to run have no access to the relevant app varible.

답변 (1개)

Prabhanjan Mentla
Prabhanjan Mentla 2020년 8월 19일
Hi,
There isn’t a direct option to publish code in app designer, but it can be achieved by converting the app(.mlapp) into (.m) file and then publishing.
To convert, select save and then select Export to .m file and then publish the exported ‘.m’ file with the below command
outputDocument = publish('demo_exported.m','pdf');
Publish function expects matlab code(.m file) as parameter.
Hope this helps.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by