is there a sort of configurartion for mex on a matlab function block?
5 views (last 30 days)
Show older comments
tochukwu victor
on 24 Sep 2015
Commented: tochukwu victor
on 25 Sep 2015
I have been struggling to build a mex file from a MATLAB function block. I have visual studio 2012 and MATLAB R2013a installed but it always can't locate the compiler. I have tried going to mex-setup from the command window but it just gives a text usage Mex[option 1..option n]source file1....., a path to mex.pl located in d MATLAB folder and an error: undefined function or variable 'setup'
0 Comments
Accepted Answer
Walter Roberson
on 24 Sep 2015
Make sure you use
mex -setup
with a space between "mex" and "setup". Otherwise it is going to think that you are trying to do a subtraction.
More Answers (0)
See Also
Categories
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!