problem in running mex file

4 views (last 30 days)
I am unable to run the function InPolygon available at the Matlab webpage < >.
I am getting error "Cannot find an exact (case-sensitive) match for 'InPolygon' "

Accepted Answer

Walter Roberson
Walter Roberson on 17 Dec 2018
Edited: Walter Roberson on 17 Dec 2018
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

Sign in to comment.

More Answers (0)


Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!