'Get matlab -batch return values when called via commend line
I wonder if there is an easy way to get return values of a Matlab (2021b) function when I call the function via command prompt.
So here is what I have to call:
matlab -batch "[RESULT, DESCRIPTION] = myFunction(someVariables)"
A little more background information:
I'm calling this function from my Python (3.6) based CI framework from a Windows VM (Windows 10). Both, RESULT and DESCRIPTION yield important information about the success of tests executed via myFunction().
I know about the possibility to add -logfile, but this logs all the information that is printed to console (stdout, stderror), and not only the return variables I need to know.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
