Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gettting output from MATLAB scripts rather than functions. #92

Open
Knightowl3128 opened this issue Feb 18, 2021 · 1 comment
Open

Gettting output from MATLAB scripts rather than functions. #92

Knightowl3128 opened this issue Feb 18, 2021 · 1 comment

Comments

@Knightowl3128
Copy link

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
Copy link
Owner

bastibe commented Feb 20, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants