Making a standalone exe from m files

Dear All,
I have a code including 10 m files and a script that runs the m files, for analysis of plates in bending. Now I want to compile the code so that I can run it outside MATLAB as a standalone exe. I tried MATLAB compiler but I could not do it.
Can anybody please guide me how to do this? Let me please mention that my code is not GUI.

2 Comments

Please note that "I could not do it" is not enough information. Are you seeing errors? If so, please specify the commands you run and the error messages that you see.
Yes, I am seeing the following error: " Undefined function 'syms' for the input arguments of type 'char' ". I have use the command syms in my code to define some variables and then differentiate and integrate the functions based on those variables.

Sign in to comment.

Answers (1)

look at this video

9 Comments

Thanks for your quick reply.
I had already tried that, but I get the following error:
" Undefined function 'syms' for the input arguments of type 'char' ".
I do not know where I am wrong.
Please guide.
The symbolic toolbox is not supported by Matlab Compiler
I have not used the symbolic toolbox. Just I have defined some variable by the command 'syms' in my code.
syms is from symbolic toolbox, then it is not supported by Matlab compiler
Is there a way to overcome this? I think for MATLAB which is a big computing software, there should be a way to do this, since most of the codes may have some parametric calculations inside them.
Unfortunately, you will have to find a way around using sym toolbox if you need code generation/compiler. At this point of time Matlab lacks that capability, and I dont see it coming in foreseeable future.
Is there any other compiler that supports the symbolic toolbox? I mean a compiler other than the MATLAB compiler.
If you work with Matlab, you will need a Matlab compiler
Ali: As Azzi rightly pointed out, it is currently not possible to deploy MATLAB code that uses the Symbolic Math Toolbox. Please consider submitting an enhancement request via MathWorks Support so the corresponding development team may consider adding this functionality in a future release.
The only way to call into your MATLAB code (containing Symbolic Math functions) from an external application would be on a machine where MATLAB is installed. Please see External Interfaces for available options.

Sign in to comment.

Categories

Find more on General Applications in Help Center and File Exchange

Products

Asked:

on 13 May 2013

Community Treasure Hunt

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

Start Hunting!