I am unable to run the function InPolygon available at the Matlab webpage < https://www.mathworks.com/matlabcentral/fileexchange/20754-fast-inpolygon-detection-mex >.
I am getting error "Cannot find an exact (case-sensitive) match for 'InPolygon' "

 Respuesta aceptada

Walter Roberson
Walter Roberson el 17 de Dic. de 2018
Editada: Walter Roberson el 17 de Dic. de 2018

0 votos

cd to the directory that contains InPolygon_Test.m
Give the MATLAB command
mex InPolygon.c
Provided that you have a compiler set up, it will create the necessary DLL. You can then test with
InPolygon_Test

5 comentarios

Abhishek Saini
Abhishek Saini el 17 de Dic. de 2018
There is no .m file so getting the error.
InPolygon .m
The Folder conntains
InPolygon .c
InPolygon .dll
InPolygon_Test.m
You could see the details
Please advise!
James Tursa
James Tursa el 17 de Dic. de 2018
mex InPolygon.c
Abhishek Saini
Abhishek Saini el 17 de Dic. de 2018
Yes it work,
It was showingfollowing error to install compiler:
Error using mex
No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more
options, visit https://www.mathworks.com/support/compilers.
I installed the compiler and it works.
Thanks @James & @Walter
Walter Roberson
Walter Roberson el 17 de Dic. de 2018
Sorry, I should have named the .c not the .m
Abhishek Saini
Abhishek Saini el 17 de Dic. de 2018
I am still waiting for my another question on
could anyone help on that?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.

Preguntada:

el 17 de Dic. de 2018

Comentada:

el 17 de Dic. de 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by