I calculate the geomagnetic field using IGRF model in Matlab. However, the output is in the NED coordinate frame and I want to tranform it into the Body frame.
I've searched everywhere and I cannot find any suitable Rotation Matrix to calculate the IGRF in Orbit or Body frame.
I have found a transformation matrix from NED to ECEF and ECI. So, if anyone knows how to go from ECEF/ECI to Orbital Frame, I would be on your debt :D

Basically, IGRF returns the Output in NED frame and I want to transfer it in the satellite's frame (body frame). I also have the R_BO (Rotational matrix from Orbit to Body frame), so if i can manage to find the magnetic field in the Orbit frame, I can transfer it in the body frame using the R_BO
– PoSeiDon Aug 06 '19 at 17:16