Tested principal axis against matlab version