Create executable or mex file?
显示 更早的评论
Hi, I have a Matlab function taking input structure as argument, processing several files and then generate an Excel sheet. Inside the function I am also calling several other Matlab functions I have written on my own. I want to generate an executable or mex file (I think) in Matlab that I can distribute to colleagues also using Matlab.
How do I create such file that they can use within Matlab without the need of distributing all individual files?
Best regards, Jonas
回答(1 个)
Walter Roberson
2016-4-9
0 个投票
Your options are:
- MATLAB Compiler. This would not require that your colleagues have a MATLAB license. Debugging the compiling can be a nuisance. Not everything can be compiled.
- MATLAB Coder and a bunch of extra work to interface to ActiveX or do other I/O or graphics. This would not require that your colleagues have a MATLAB license. The extra interfacing work is probably not worth the effort. The parts that can have code generated are even more restrictive than the Compiler
- Create a Toolbox . This does require that your colleagues have a MATLAB license. This should be fairly easy. It pretty much creates a .zip file, so your colleagues would be able to look at the .m files, but you only have to transfer the single bundle file.
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!