transplant icon indicating copy to clipboard operation
transplant copied to clipboard

Gettting output from MATLAB scripts rather than functions.

Open Knightowl3128 opened this issue 3 years ago • 1 comments

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.

Knightowl3128 avatar Feb 18 '21 12:02 Knightowl3128

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.

bastibe avatar Feb 20 '21 13:02 bastibe