I'm a bit too late but for whatever it may be worth here is what I came up with.
According the values from Matlab - i get the same results as Alan and it looks to me that you may have made a typo in the function definition, using different constants.