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
I compiled kdtree_build.cpp with matlab 2013a on windows 7. The command I use is
mex kdtree_build.cpp. However, when I executekdtree_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.mandkdtree_build.mex64. When I trying to invoke functionkdtree_build, matlab actually invoke filekdtree_build.minstead ofkdtree_build.mex64. If I renamekdtree_build.mto other name, it works fine.So how can I associate the binary file
kdtree_build.mex64with comment filekdtree_build.m?OS: windows 7
matlab: 2013a
kdtree version: 1.2