"Phil Goddard" <email@example.com> wrote in message <firstname.lastname@example.org>... > The problem is almost certainly to do with how your compiler handles long doubles. > Some compilers define long double as the same as double, so you may not be getting what you expect.
That sounds interesting. I use the gcc compiler on MAC OS 10.9.1. Matlab 2013b.
> > Also, mxGetPr points to double, so you should be casting to a long double before writing to kappa, betaN etc.
Tried this whitout success. > > The problem is not going to be with mxGetField. Good to know. Realize now that it could not be, since the return value is a pointer, and no data is copied... > > Phil. Thanks for your reply!