"Not enough input arguments" error
조회 수: 278 (최근 30일)
이전 댓글 표시
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
Shreyas
2023년 1월 30일
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.
채택된 답변
Tushar Behera
2023년 1월 30일
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
댓글 수: 0
추가 답변 (1개)
Sandile Maduna
2025년 3월 19일
please help in clearing this error:
Not enough input arguments.
Error in cell (line 32)
eta_act = (R * T / (alpha * n * F)) * log(max(j / i0, 1e-6)); % Avoid log(0)
^
Error in matlab.ddux.internal.logData
Error in sltemplate.internal.utils.logDDUX
Error in sltemplate.ui.StartPage/showWithFallback
Error in sltemplate.ui.StartPage.show
댓글 수: 1
Adam Danz
2025년 3월 20일
We would need reproduction steps, something we can copy-paste into MATLAB that will produce this error, and we would need to know your MATLAB release.
참고 항목
카테고리
Help Center 및 File Exchange에서 Standard File Formats에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!