In MATLAB I would like to create an 1xN array of zeros, pass it to a C routine as an input argument, have the C routine update the (type double) values in the array (matrix in MATLAB). I would like to do this instead of having the MEX routine return a matrix (as is done in the example arrayProduct.c)
Is this possible, and if so, does anyone have any examples they would be willing to share?
Best Answer