kdtree icon indicating copy to clipboard operation
kdtree copied to clipboard

runtime error "attempt to execute script as a function" on windows 7

Open coldfog opened this issue 9 years ago • 0 comments

I compiled kdtree_build.cpp with matlab 2013a on windows 7. The command I use is mex kdtree_build.cpp. However, when I execute kdtree_build(p), I got a runtime error "attempt to execute script as a function".

I found this is caused by the duplicated name of kdtree_build.m and kdtree_build.mex64. When I trying to invoke function kdtree_build, matlab actually invoke file kdtree_build.m instead of kdtree_build.mex64. If I rename kdtree_build.m to other name, it works fine.

So how can I associate the binary file kdtree_build.mex64 with comment filekdtree_build.m?

OS: windows 7 matlab: 2013a kdtree version: 1.2

coldfog avatar Jan 06 '16 14:01 coldfog