bastibe / transplant

Transplant is an easy way of calling Matlab from Python
https://transplant.readthedocs.io
Other
110 stars 26 forks source link

Gettting output from MATLAB scripts rather than functions. #92

Open Knightowl3128 opened 3 years ago

Knightowl3128 commented 3 years ago

How do I get the output from a script similar to this, which uses the Matlab Engine?

I would also be helpful if I can understand how to change the path so that I can access matlab files in a different directory from my python file. I tried adding the path through sys, but it didn't work.

Thank you.

bastibe commented 3 years ago

You can call scripts and read global variables afterwards. But that is bad style. Use functions.

Access files in other directories just like you would in Matlab, using cd.