Solving a linear equation using least-squares (Calibration Matrix)

조회 수: 2 (최근 30일)
Omar Alahmad
Omar Alahmad 2019년 5월 8일
편집: Matt J 2019년 5월 9일
Hi,
I need to find the calibration matrix C and offset A in the equation:
F = A + CX
F is a [2x1] vector and X is [3x1] vector. These are known from experimental data.
The offset vector A is [2x1] and the calibration matrix C is [2x3].
I have multiple data such that F becomes a matrix of size [2xn] and X becomes a matrix of size [3xn].
I need to find a way to approximate matrices A and C using a least-squares approach.
It is not clear to me how to proceed however.
Thanks!

채택된 답변

Matt J
Matt J 2019년 5월 8일
W=[ones(1,n);X];
Z=F/W;
A=Z(:,1);
C=Z(:,2:end);
  댓글 수: 1
Omar Alahmad
Omar Alahmad 2019년 5월 9일
Thanks Matt, it seems to have done the job. Although I still do not have a complete understanding of how it worked. I will have to look a bit further.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Matt J
Matt J 2019년 5월 8일
편집: Matt J 2019년 5월 9일
Are these equations for projective transformations? If so, they are not really linear equations. They are accurate only up to some multiplicative factor. You would need to use methods from projective geometry like the DLT to solve it,

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by