I need to calibrate a magnetometer using the method of Merayo with matlab. I have found this code:
But I do not understand how I apply this technique. I fact I have the magnetic Data distorted, I apply the Magnetic Calibration.
[U,c] = MgnCalibration(X)
So I get U the Shape ellipsoid parameter and c the ellipsoid center. And the calibrated measurement is: w = U*(v-c)
The problem is that when I calculate the corrected Data I have another order of values.
Data=[1750 1460 -3940]
CalibratedData=[0.4042 0.3820 -0.6860]
What I did not very well understood? How can I use my magnetic data after this calibration?