How can i implement least squares of the difference between 2 matrices?
이전 댓글 표시
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?
답변 (1개)
Iman Ansari
2013년 4월 10일
Hi
Error= g-u;
MSE=mean(Error(:).^2)
댓글 수: 6
Rawan hamdi
2013년 4월 10일
편집: Rawan hamdi
2013년 4월 10일
Iman Ansari
2013년 4월 10일
I'm not sure:
Error= g-u;
SquersError=Error.^2;
LeastSquersError=min(SquersError(:));
Argmin=Error(SquersError==LeastSquersError);
Image Analyst
2013년 4월 10일
Explain in words what "argmin" means to you. Then we can try to answer.
Rawan hamdi
2013년 4월 10일
편집: Rawan hamdi
2013년 4월 10일
Iman Ansari
2013년 4월 11일
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?
Rawan hamdi
2013년 4월 11일
카테고리
도움말 센터 및 File Exchange에서 Linear Algebra에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!