I'm trying to interface a C DLL with MATLAB using LOADLIBRARY.
My function has the following header:
double ProvaMatF(int r, int c, double **mat)
I'm using a double pointer to allow dynamic initialization (through MALLOC) of my array. The array in C is then defined by a double pointer pointing to an array of pointer that are referring to arrays of double values.
I'm not able to create a double pointer object in MATLAB that correctly represents my matrix. If I create a DoublePtrPtr with LIBPOINTER MATLAB Crashes while executing functions from the DLL.
Best Answer