Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-401. Error in fminsearch (line 200) fv(:,1) = funfcn(x,varargin{:});
Show older comments
zahl = [1:1:401];
fun_normal = @(x)(normpdf(zahl,x(1),x(2)) + unifpdf(zahl,0,x(3)));
x0=[max(zahl),5,30];
x = fminsearch(fun_normal,x0);
Accepted Answer
More Answers (1)
mohammad hodaei
on 18 Dec 2019
0 votes
please let me know how did you fix the code finally? I have the same problem.
Thanks
M.H.
Categories
Find more on Embedded Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!