How can i implement least squares of the difference between 2 matrices?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I'm trying to get the least squares of the difference between 2 matrices
argmin |g-u| both g and u are matrices of size [280,307,191]
any help?
0 comentarios
Respuestas (1)
Iman Ansari
el 10 de Abr. de 2013
Hi
Error= g-u;
MSE=mean(Error(:).^2)
6 comentarios
Iman Ansari
el 11 de Abr. de 2013
For these u and g what is the answer?
u=[211 103 93; 256 239 16; 96 110 216];
g=[147 38 131; 11 228 112; 158 192 41];
Error= g-u;
SquersError=Error.^2;
LeastSquersError=min(SquersError(:));
Argmin=abs(Error(SquersError==LeastSquersError))
Is 11 the result you want?
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!