from Example of CUDA and MATLAB and nothing else (for Windows) by Paul
A simple example that creates a MEX file which calls CUDA to add two length-5 vectors

All files for Example of CUDA and MATLAB and nothing else (for Windows)
/my_compile.m
/test.cpp
/test.cu

Contact us at files@mathworks.com