This example shows how to write a MEX-file to call a C function, arrayProduct, in MATLAB using a MATLAB matrix.
www.google.com.tw