Jump to content

Recommended Posts

Posted

The MATLAB website states that "the number of arguments is negative if the function has a variable number of arguments" when I use nargin to test such functions.

 

So when I enter nargout ode45, I get -5. But why is the absolute value 5, does that mean it's the maximum number of outputs that ode45 can release? It is not a random number because I keep getting the same result after typing in.

 

Does anyone know why this is happening? Thank you :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.