How to generate MEX files from C code generated by matlab coder, without using the matalb coder
Show older comments
I have matlab coder installed, and I have found the
codegen [-options] [files]
command useful for generating MEX files and improving performance. I have put my code on github, but other users do not have matlab coder installed, so they cannot use the above sytax to generate MEX files for their OS.
During creation of the MEX file, as an intermediate step, matlab produces lots of .c and .h files, in multiple folders. Given that the
mex [options ...] file [files ...]
command in matlab does not require the matlab coder, I would like to use it to produce MEX code based on these .c and .h files. This process should then be repeatable for users who do not have matlab coder installed, thus generating MEX files for their OS and matlab version. But I am not sure which c files I should be pointing to, if I should also be pointing to the .h files, if these files need to be modified, etc.
But I cannot find any instructions on how to do this - any help would be much appreciated - thanks.
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Coder 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!