I am trying to model magnetic target localization in MATLAB using those algorithms. So essentially what I want to output is the position vector of the target (x, y, z) and the magnetic moment vector (mx, my, mz). I think I have modelled the magnetic field correctly, but I am not sure how to go from the magnetic field values to localizing the position of the magnetic source.
I have tried looking for source code but to no avail...so if anyone has any sources that I can take a look at with respect to modelling this in MATLAB.