How can I access the output arguments of a function compiled as a standalone application?
조회 수: 2 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2020년 12월 17일
답변: MathWorks Support Team
2021년 2월 17일
I have a standalone application in which the main function has output arguments. I would like to be able to access these output arguments in the command line, and from other applications that launch my compiled application. Is there any way to do this?
채택된 답변
MathWorks Support Team
2020년 12월 17일
There are two different approaches to accomplish this, depending on the intended use case for the output arguments.
Display Output Arguments of Standalone Application at the Command Line
By default, the output arguments of the main function of a standalone application will not by displayed to the user. The only way to access these is to add code that will display the output arguments on the screen or write the output arguments to a file.
Pass Output Arguments to Another Program
The preferred way of passing output arguments from a MATLAB function to code in another programming language is to build your MATLAB code into a library using MATLAB Compiler SDK. For more information on using MATLAB Compiler SDK, refer to the documentation below:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!