Hello,
I am trying to minimize this objective function f = Σ|(sqrt(a(i,1)-b(1)).^2+(a(i,2)-b(2)).^2+(a(i,3)-b(3)).^2)-r|.
where I am attempting to find the value for b which minimizes the function and i = 1:n. I am using fminunc but I am unsure of how to pass the summation to it in a valid way. Any advice would be greatly appreciated.
Best Answer