I want to make satellite ground track using matlab. I already had a position of satellite(ECI) by solving Kepler equation. And I know convert ECI to ECEF using rotation determinant. Then I convert them into longitude and latitude.
longitude = atan2(x/y)
latitude = asin(z/(x^2+y^2+z^2))
However, when I try to plot, track seems not collect, like a picture (inclination is 25 degree).