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

Risposte (1)

Walter Roberson
Walter Roberson il 9 Apr 2016

0 voti

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.

Categorie

Richiesto:

il 9 Apr 2016

Risposto:

il 9 Apr 2016

Community Treasure Hunt

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

Start Hunting!

Translated by