error output from python matlab engine
19 visualizzazioni (ultimi 30 giorni)
I'd like to get better debug info than the 'matlab function cannot be evaluated' that I currently see from a complex matlab function being run from python using the python matlab engine. Is there some way to pipe extra matlab debug output to a file and/or get more info ?
Robert Snoeberger il 15 Gen 2016
You could get the last uncaught exception  and then call getReport  to get the error message for that exception.
>>> import matlab.engine
>>> eng = matlab.engine.start_matlab()
>>> # Do something that throws an exception...
>>> eng.eval('exception = MException.last;', nargout=0)