"Not enough input arguments" error
显示 更早的评论
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 个评论
please check your input arguments. the input arguments in the function and also in the main script should be same.
for example:
x=10;
y=12;
z=20;
out=mynewfunc(x,y,z)
function out=mynewfunc(x,y,z)
out=x*y/z;
end
same error: absence of input argument x in the main script. Also make sure you initialized all the input in your main script.
x=10;
y=12;
z=20;
out=mynewfunc(y,z)
function out=mynewfunc(x,y,z)
out=x*y/z;
end
Dyuman Joshi
2023-1-30
In order to run a function with inputs, it is necessary to give inputs.
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.
采纳的回答
更多回答(1 个)
Sandile Maduna
2025-3-19
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Standard File Formats 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!