I am working on running a MatLab script (.m) on Python like this (idea from here):
import matlab.engine
eng = matlab.engine.start_matlab()
eng.testing(nargout=0)
test = eng.workspace['M']
print(type(test))
print(test)
This is working, it will print me something like this:
<class 'float'>
252.0
However, on the MatLab side I have something like 30 different variables on its workspace (i.e. 1x1 Figure, 101x1 complex double). Is there any way of "automatic" converting all of the MatLab variables to its respective Python variable?