-
Notifications
You must be signed in to change notification settings - Fork 26
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
When I use 'transplant.Matlab()' to start up Matlab session , how could I use python code to clase the Matlab session?Now I need to close the window manually. Thanks so much! #91
Comments
I use python code: matlab.close(); matlab.exit(); matlab.send_message('die'), it seems does't work. |
Can you describe your problem in a bit more detail and provide some example code so we can reproduce it? |
Thank you! |
If I understand you correctly, your However, you say "I need to close its window manually", which implies that you are doing graphical things inside |
Thank you! my problem is my python code start matlab successfuly and open a matlab window, run Myfun correctly. but python code not continus until the matlab window closed . seems the matlab.exit() methed is not working. |
What sort of Matlab window is being opened? Like a figure? What operating system are you running? |
Is that Window interactive, i.e. can you type something in there and get a response? That shouldn't happen. Could you debug into your transplant_master.py, and report back the value of |
Thank you! Yes, I can type something in window and it will run and give a response. I debug transplant_master.py, the value of |
If there is a window, it should not be interactive. If it is interactive, transplant must have crashed. It's a sad fact of Matlab that some errors can't be caught. Do you see any error messages that might indicate a crash of transplant_remote? |
|
The errors should show up either in your Python console, or in Matlab's window. Although since you seem to be running inside an IDE, perhaps the IDE is eating STDERR? Perhaps you will see an error if you try running your program in a plain terminal instead of an IDE. |
|
Hello, edit: Thanks in advance. |
It may be that matlab on Windows behaves differently from matlab on unices. Try inserting |
No description provided.
The text was updated successfully, but these errors were encountered: