Finding the function corresponds to the minimum residual
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am trying to find the optimum function by minimising the residual. Need to find the function corresponds to the minimum residual.
I am using the Matlab code similar to the one below. Is there any other better, more efficient way to find the optimum function 'f'?
Thanks in advance.
for i = 1: length(alphaarray)
alpha = alphaarray(i);
[f] = fine(K1,K2,Mmeas,alpha);
res(i) = norm (K2*f - Mmeas);
end
idx = find(res == min(res));
Xidx = alphaarray(idx);
alpha = Xidx;
[f] = fine(K1,K2,Mmeas,alpha);
0 comentarios
Ver también
Categorías
Más información sobre Mathematics and Optimization en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!