Skip to content
Snippets Groups Projects
Commit 88ccef47 authored by Eric Wait's avatar Eric Wait
Browse files

Histogram now returns types similar to what the data is

parent e60e397a
No related branches found
No related tags found
No related merge requests found
......@@ -131,11 +131,11 @@
}
const mwSize DIM = arraySize;
plhs[0] = mxCreateNumericArray(1,&DIM,mxDOUBLE_CLASS,mxREAL);
double* histPr = mxGetPr(plhs[0]);
plhs[0] = mxCreateNumericArray(1,&DIM,mxUINT64_CLASS,mxREAL);
size_t* histPr = (size_t*)mxGetPr(plhs[0]);
for (unsigned int i=0; i<arraySize; ++i)
histPr[i] = double(hist[i]);
histPr[i] = hist[i];
delete[] hist;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment