Borrar filtros
Borrar filtros

"Not enough input arguments" error

210 visualizaciones (últimos 30 días)
Bidyarani
Bidyarani el 30 de En. de 2023
Comentada: Shreyas el 30 de En. de 2023
When I test this code which is shown below. I got an error of " not enough input arguements". How can i solve this error?
Error:--
  4 comentarios
Dyuman Joshi
Dyuman Joshi el 30 de En. de 2023
In order to run a function with inputs, it is necessary to give inputs.
Shreyas
Shreyas el 30 de En. de 2023
Hello Bidyarani,
You will need to pass the necessary inputs and capture the outputs to run function "admiss_control" as:
[ out_1, out_2, ..] = admiss_control( inp_1, inp_2, inp_3, ..)
in the Command Window.

Iniciar sesión para comentar.

Respuesta aceptada

Tushar Behera
Tushar Behera el 30 de En. de 2023
Hi Bidyarani,
I understand that you are getting the "not enough input arguments" error while executing the above code.
The "Not enough input arguments" error in MATLAB occurs when a function is called with fewer input arguments than it is defined to accept. To solve this error, you need to provide the required number of input arguments to the function.
I would suggest starting a debugging session and checking whether all the input arguments such as "new_N", "n_intfs" etc. are getting initialized before line 11 or not. This can be done by setting up break points before line 11 and checking out the variables present in the workspace at that instance.
For further knowledge on how to debug your code using MATLAB, you can use the following link:
I hope this solves your query.
Regards,
Tushar

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by