Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Problem with C codes embeded in Matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a Matlab file contain a thread 'mex -O SegSegForces.c'. Since there is a file with extension c so I wonder what should I do if I want to run this program? I have MicroSoft Visual Studio installed but I don't know whether this can help with the c program?
0 Kommentare
Antworten (2)
Jan
am 16 Mär. 2011
I suggest reading the documentation concerning the command MEX:
docsearch mex
If the C-function has been compiled by MEX, it can be called exactly as an M-function.
0 Kommentare
Kaustubha Govind
am 16 Mär. 2011
It appears that SegSegForces.c is a MEX-function. For the compilation command "mex -O SegSegForces.c" to work, you must first setup a MEX compiler using the command:
mex -setup
Then, on running the mex compilation command, you should see a binary called SegSegForces.mexw32 (or .mexw64 if you're on 64-bit Windows) generated. You can now call this function 'SegSegForces' like any other MATLAB function.
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!