How can I access the output arguments of a function compiled as a standalone application?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 17 Dez. 2020
Beantwortet: MathWorks Support Team
am 17 Feb. 2021
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?
Akzeptierte Antwort
MathWorks Support Team
am 17 Dez. 2020
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Compiler SDK finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!