fminsearch anonymous use question
Mostrar comentarios más antiguos
hello!
i want to know the information about how to use fminsearch function
i cant add anonymous functions.
in my situation i have to use loop to add the functions
for cnt=1:count(i)
cost=cost+@(x)((P(conAM(i,cnt))-5*b*b*log10((x(1)-AM(conAM(i,cnt),1))^2+(x(2)-AM(conAM(i,cnt),2))^2))^2);
end
fminsearch(cost,[7 7]);
i made this function but it doesn't work
and i need to fminsearch that function. (i don't have x(1),x(2))
++ i cant find information about anonymous function when f=@(x)(about(x(1),x(2)) how to insert variable ??? what is difference of y=@(x,y)(any x y funtion)???
please help me
this made me crazy
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!