Skip to content

Instantly share code, notes, and snippets.

@rej55
Last active December 3, 2017 05:15
Show Gist options
  • Save rej55/7788ea0a6ac3670339845068b957ca5f to your computer and use it in GitHub Desktop.
Save rej55/7788ea0a6ac3670339845068b957ca5f to your computer and use it in GitHub Desktop.
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
double* ptr;
plhs[0] = mxCreateDoubleMatrix(5, 5, mxREAL);
ptr = mxGetPr(plhs[0]);
/* ここでptrに数値データを入れていく */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment