- Add the mex folder first, as you wrote.
- Put .m and .mexa64 into the same folder. MATLAB would pick .mexa64 for execution and .m for help.
Mex function help for mexfile function
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
palimer
am 24 Nov. 2014
Beantwortet: Titus Edelhofer
am 24 Nov. 2014
Hello,
I have made some changes to a project that creates a bunch of mex files for matlab. Each mex function has a correspondent .m file that contains the help. The thing is that before doing the changes all the mex functions were stored in a bin folder while the help was in a help folder. Now due to some things I store the mex files under mex folder instead of bin. When the matlab tries to execute the function it calls the .m instead of the mexa64. I think that is because of the order of how I add the folders into matlab path (I use addpath(genpath(proj_folder)) ). If I add first the folder of the help folder and later the mex one it works perfectly.
Any idea of how to solve this without adding the paths in a specific way?
0 Kommentare
Akzeptierte Antwort
Titus Edelhofer
am 24 Nov. 2014
Hi,
exactly answering your question: no, that's the way it works.
You have basically two options:
Titus
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!