Chance here to put your name in a research paper. Can anyone help me to create a mex file named &quo

Can anyone help me

is there no one to help me???

People are unwilling to do someone else’s homework, I guess. ;-)

It also seems you already have it pretty much done? Just compile it!
Tutorial here: http://www.orangeowlsolutions.com/archives/498

thanks vacaloca… I tried your suggested ways earlier also but its giving some error. I really have no idea wht to do with the errors… That’s why I had to give this offer

Maybe someone will answer a more specific question… For a start, maybe you want to post the errors?

Error 12 error : argument of type “const mwSize *” is incompatible with parameter of type “mwSize *” kernel.cu Line 174

Error 7 error : duplicate parameter name C:\Users\Admin\documents\visual studio 2013\Projects\myProject\myProject\kernel.cu Line 76 1

Error 11 error : expression must have arithmetic, enum, or pointer type C:\Users\Admin\documents\visual studio 2013\Projects\myProject\myProject\kernel.cu Line: 131 1 myProject

Error 10 error : identifier “count” is undefined C:\Users\Admin\documents\visual studio 2013\Projects\myProject\myProject\kernel.cu 120 1 myProject

Error 6 error : return value type does not match the function type C:\Users\Admin\documents\visual studio 2013\Projects\myProject\myProject\kernel.cu 73 1 myProject

Error 18 error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc.exe” -gencode=arch=compute_20,code="sm_20,compute_20" --use-local-env --cl-version 2013 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin” -IC:\Users\Admin\Desktop\include -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -G --keep-dir Debug -maxrregcount=0 --machine 32 --compile -cudart static -g -DWIN32 -D_DEBUG -D_CONSOLE -D_WINDLL -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /Zi /RTC1 /MDd " -o Debug\kernel.cu.obj “C:\Users\Admin\documents\visual studio 2013\Projects\myProject\myProject\kernel.cu”” exited with code 2. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 6.5.targets 593 9 myProject

19	IntelliSense: cannot open source file "tmwtypes.h"	c:\Users\Admin\Desktop\include\matrix.h	293	1	myProject
83	IntelliSense: duplicate parameter name	c:\Users\Admin\Documents\Visual Studio 2013\Projects\myProject\myProject\kernel.cu	76	122	myProject
98	IntelliSense: expected an expression	c:\Users\Admin\Documents\Visual Studio 2013\Projects\myProject\myProject\kernel.cu	131	25	myProject
23	IntelliSense: identifier "mwIndex" is undefined	c:\Users\Admin\Desktop\include\matrix.h	734	10	myProject
20	IntelliSense: identifier "mwSize" is undefined	c:\Users\Admin\Desktop\include\matrix.h	598	10	myProject
79	IntelliSense: return value type does not match the function type	c:\Users\Admin\Documents\Visual Studio 2013\Projects\myProject\myProject\kernel.cu	73	9	myProject

Warning 2 warning : a host variable “flag1” cannot be directly written in a device function C:\Users\Admin\documents\visual studio 2013\Projects\myProject\myProject\kernel.cu 49 1 myProject

Warning 8 warning : a host variable “flag2” cannot be directly written in a device function C:\Users\Admin\documents\visual studio 2013\Projects\myProject\myProject\kernel.cu 84 1 myProject