To translate TriScatteredInterp from Matlab to C# or C++
Show older comments
I would like to translate TriScatteredInterp from Matlab to C# and I do these operations but they don’t work.
- I create "interpolazione.m" file on my desktop
- I press buttons "Desktop -> MATLAB Coder: MEX Function"
- I create "interpolazione.prj" file, I add "interpolazione.m" file in "Entry-Point Files" and I press "Build" button.
I get the following error message:
coder interpolazione.prj Could not locate build the MEX file compiler options mexopts.bat. Run mex-setup to select the MEX compiler and create the MEX options file. Use codegen help for more information on using this command.
The code that I would like to translate is this:
X=[0,1,2,0,1,2,0,1,2]';
Y=[0,0,0,1,1,1,2,2,2]';
Z=[0,0,0,1,1,1,2,2,2]';
x=[1.5,1.6,1.7];
y=[1.5,1.1,11.0];
F = TriScatteredInterp(X,Y,Z);
z = F(x,y)
Thanks for the help
1 Comment
Walter Roberson
on 29 Apr 2012
Have you run
mex -setup
Accepted Answer
More Answers (1)
Ubaldo
on 30 Apr 2012
0 votes
Categories
Find more on MATLAB Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!