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

Remove need for "nargout=0" in function calls #11

Open
LightCC opened this issue Jul 7, 2022 · 0 comments
Open

Remove need for "nargout=0" in function calls #11

LightCC opened this issue Jul 7, 2022 · 0 comments

Comments

@LightCC
Copy link

LightCC commented Jul 7, 2022

A big quality-of-life improvement in the matlab engine would be to automatically handle, somehow, the need to add "nargout=0" for every script command or function without a return value. The engine should be able to detect no outputs and simply return a None to Python, which will be ignored if the user doesn't set the output to a variable.

If somehow, this is not possible, at least please update the error message that is generated, it is not helpful at all. This is a major problem for new users just trying to get the basics working. Now that I'm past it, at least I usually know what the problem is, but it is still annoying to have to type in the argument every time, and to find and fix the ones where it was forgotten, since you normally don't need that argument.

This would be a huge streamlining of working with the matlab.engine. Thanks!

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

1 participant