Could not find the compiler "nvcc" on the DOS path. Maltab_CUDA Problem

Hi all!

I am newbie in MATLAB.I am trying to make M file from CUDA programs given in Matlab_CUDA plugins. All instruction are given in read me file is working fine, but when I try to run

nvmex -f nvmexopts.bat -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart

It gives following error:

This is mex, Copyright 1984-2005 The MathWorks, Inc.

-> Options file specified on command line

-> Options file = nvmexopts.bat
-> COMPILER = nvcc
-> Compiler flags:
COMPFLAGS = -c -D_WCHAR_T_DEFINED -Xcompiler “/c /Zp8 /GR /W3 /EHsc- /Zc:wchar_t- /DMATLAB_MEX_FILE /nologo”
DEBUGFLAGS = -D_WCHAR_T_DEFINED -Xcompiler “/MD /Zi /Fd"Szeta.mexw32.pdb”
arguments = -IC:\cuda\include
Name switch = -o
-> Pre-linking commands =
-> LINKER = link
-> Link directives:
LINKFLAGS = /dll /export:mexFunction /MAP /LIBPATH:“C:\PROGRA~1\MATLAB\R2007b\extern\lib\win32\microsoft” libmx.lib libmex.lib libmat.lib /implib:C:\DOCUME~1\hhhh\LOCALS~1\Temp\mex_DB1ADF77-371A-473B-2B9D-BDE13C4996D8\templib.x /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
LINKDEBUGFLAGS = /DEBUG /PDB:“Szeta.mexw32.pdb”
Name directive = /out:“Szeta.mexw32”
File link directive =
Lib. link directive =
Rsp file indicator = @
-> Resource Compiler = rc /fo “mexversion.res”
-> Resource Linker =

Could not find the compiler “nvcc” on the DOS path.
Use mex -setup to configure your environment properly.

C:\PROGRA~1\MATLAB\R2007B\BIN\NVMEX.PL: Error: Unable to locate compiler.

??? Error using ==> nvmex at 206
Unable to complete successfully.

Please suggest me the solution of this problem.

A) Is it a problem with nvcc path? how to set this path

B) Is any change required in nvmexopts.bat or

Following are detail of my tools:

1.CUDA Toolkit2.3
2.CUDA Sdk2.3
3.Matlab_CUDA plug ins 1.1
4.Visual Stdio 2005 or 2008(But now I am using 2005 for Matlab)
5.Window XP Service Pack 3
6. Matlab Version 7.5.0(R2007b)
Thanks in Advance

You can’t compile CUDA code in Matlab, you have to use a Makefile or something similar.