Create executable or mex file?

7 ビュー (過去 30 日間)
Jonas
Jonas 2016 年 4 月 9 日
回答済み: Walter Roberson 2016 年 4 月 9 日
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
Walter Roberson 2016 年 4 月 9 日
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.

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by