Hi, The find_program command cannot find matlab on windows because mex and mexext are batch files. Changing find_program(MEX_CMD mex) find_program(MEXEXT_CMD mexext) to find_program(MEX_CMD mex.bat) find_program(MEXEXT_CMD mexext.bat) fixes the problem. Could you please fix this in the next version? Thanks