Matlab Compiler: passing parameters
16 ビュー (過去 30 日間)
古いコメントを表示
The use of Matlab Compiler:
- How can I prepare a compiled Standalone Application such that the user can open it either in a Matlab command window or a web browser?
- How can I prepare the compiled app such that the user can pass the input arguments of the Matlab function and receive the output arguments?
0 件のコメント
採用された回答
Steven Lord
2024 年 10 月 18 日
How can I prepare a compiled Standalone Application such that the user can open it either in a Matlab command window or a web browser?
Running a compiled app by typing the name of the executable in the MATLAB Command Prompt is not supported (though you could call it using the system function.) For this use case I'd consider providing the non-compiled MATLAB program files (your scripts, functions, and/or classes) to users who need to run this in MATLAB.
How can I prepare the compiled app such that the user can pass the input arguments of the Matlab function and receive the output arguments?
See this documentation page. Input arguments should work (with the caveat that they are received by the application as char vectors by default, as noted on that page.) Where would you expect to receive any output arguments to if that were supported and you were (for example) running your application as a web app? That page talks about other ways to get information out of your application.
2 件のコメント
Steven Lord
2024 年 10 月 25 日 13:13
This is directly covered in the "Handle Input Arguments in MATLAB" section on the last of the documentation pages to which I linked. The application receives the inputs as text and you will need to convert that text into a numeric matrix.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で MATLAB Web App Server についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!