LEA-6T position fix with Matlab

Hi,

Im trying to fix a position with the Ublox LEA-6t module and Matlab in real time. I’m getting the ephemeris with the AID-EPH message and then getting pseudoranges and receiver time continuously with the RXM-RAW message. Then I compute the satellite position with the ephemeris parameters and I try to solve the pseudoranges equation with least squares. But the position is changing constantly and its far away from mine.

Do you know if theres any problem with LEA-6T and MAtlab? What I’m doing wrong?

Thanks,

Miquel