how can i remove this error "not enough input arguments". Any help please
Info
This question is closed. Reopen it to edit or answer.
Show older comments
function [posteriors_x,g_x]=lab1_x1(x,Training_Data) D=Training_Data; [M,N]=size(D); f=D(:,1); la=D(:,N);
Answers (1)
Star Strider
on 5 Feb 2018
0 votes
We would have to know how your call your ‘lab1_x1’ function.
However, you have not defined within ‘lab1_x1’ either ‘posteriors_x’ or ‘g_x’ in ‘lab1_x1’, so not defining those will throw errors.
2 Comments
eli
on 5 Feb 2018
Star Strider
on 5 Feb 2018
My pleasure.
You must define them as such in your lab1_x1 function.
You must pass ‘x’ and ‘Training_Data’ as arguments to ‘lab1_x’.
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!