I'm having trouble with matlab crashing when running the test file. I am using Matlab 2012a, VS10, Win7 x64. I think it might have to do with the mex code not being compatible with -useLargeArrayDim. However, I can get the ray tracing test file to run and give results. Have you had similar issues or advice?