Undefined function 'publish' for input arguments of type 'struct' [MATLAB APP Standalone]

1 回表示 (過去 30 日間)
Ankit
Ankit 2022 年 9 月 14 日
回答済み: Ankit 2022 年 9 月 15 日
I am facing the below mentioned error when I am using Standalone application created for MATLAB App. It works fine when I run my MATLAB app.
Following piece of code i have written
options.format = 'html';
options.createThumbnail = false;
options.showCode = false;
options.evalCode = true;
options.useNewFigure = false;
options.catchError = true;
options.outputDir = subdir;
app.path = publish('report.mlx',options);
winopen(app.path);
Error:
Undefined function 'publish' for input arguments of type 'struct'.
Error in appdesigner.internal.service.AppManagementService/tryCallback (line 181)
Error in matlab.apps.AppBase>@(source,event)tryCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event) (line 37)
Error using matlab.ui.internal.controller.WebMenuController/fireActionEvent (line 67)
Error while evaluating Menu Callback.

採用された回答

Ankit
Ankit 2022 年 9 月 15 日
I found out in the following link .exe aus MATLAB code, "publish" function nicht erk - Mein MATLAB Forum - goMatlab.de that MATLAB compiler doesn't support 'publish' function.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by