MATLAB Answers

unable to use "mex c" file

1 view (last 30 days)
Huseyin on 30 Aug 2016
Commented: Huseyin on 30 Aug 2016
I have a code that includes a "c" file which is called "unravel.c". When I run the code, I see this error message "Undefined function 'unravel' for input arguments of type 'uint16'". Then I found unravel.c from the website but couldn't use it. I tried to use; "mex unravel.c" on the command window but I get:
"No supported SDK or compiler was found on this computer. For a list of supported compilers, see" message. I visited that website but couldn't figure out what to do.
Please help. Thanks in advance.
  1 Comment
James Tursa
James Tursa on 30 Aug 2016
You need to install one of the supported compilers.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 30 Aug 2016
Download and install SDK 7.1; you can find it at
After that use
mex -setup
to configure mex. You should then be able to mex your code.
  1 Comment
Huseyin on 30 Aug 2016
Thank you, I am now downloading the SDK 7.1

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!