- Pass the function name as a string.
- Define the input arguments required by the MATLAB function.
- Specify the number of outputs expect from the MATLAB function (1 is assumed if not specified).
- Define the appropriate returned type for the outputs of the MATLAB function.
- Use writers to redirect output from the MATLAB command window to Java.
How can I handle more than one input/output in an exported function as a Java library?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Alba Díaz
am 27 Mär. 2019
Beantwortet: Patel Mounika
am 1 Apr. 2019
Who it may correspond,
I would like to compile my matlab function as a Java library to use it in the Eclipse environment.
The problem is that my function has more than one input and more than one output and I don't know how to handle them.
Where can I find more info about this?
Thanks in advance,
Alba
0 Kommentare
Akzeptierte Antwort
Patel Mounika
am 1 Apr. 2019
You can execute MATLAB functions from Java using the MATLABEngine feval and fevalAsync methods.
To call a MATLAB function:
Look into below documentation for more information.
Hope this helps.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Java Package Integration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!