I have written my program in c++ and needed to write a c++mex function to pass input parameter and retrieve some output values in matlab. but i have been facing some issues accessing my multidimensional array. here follows a piece of what i have written and the error message. w was declare as follows:
double **W;
W[i][j];
for (int i=0;i < 6; i++)
{
for (int j=0;j<6;j++)
{
//B[j + 6*i] = W[i][j];
B[j + 6*i] = W[i + 6*j];
}
}
and when compiling i get the following error message:
cannot convert ‘double*’ to ‘double’ in assignment