how to create a standalone application in MATLAB?

I have created a project which contains 8 .m-files,3 .mat files,few images,5 .fig files.Now I want to create standalone application which I can distribute or use in other PCs which dont have MATLAB.How to create and distribute my software?

4 Kommentare

You need MATLAB Compiler.
Walter: Perhaps you should post your comment as an answer? :)
amit probably needs more detail than that, pointers to the documentation.
I am working in MATLAB 2012a on Windows7.I have created a project on image processing so I have created few m-files for different image processing functions.there is GUI where user can select different sources and then based on user selection,he is directed to different m files.Now i want to create a single executable with all m-files,fig files,mat files.
I am using MS VS 2010 compiler.When i use deployment tool and add all files to my project,it starts compiling but i get following error:
"Warning: an error occurred while parsing class emlcoder.InferenceReport: Undefined function 'findclass' for input arguments of type 'double'."
When I am running my matlab code,its working fine.then Why i am getting this error?

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Thomas
Thomas am 17 Mai 2012

1 Stimme

1 Kommentar

I am working in MATLAB 2012a on Windows7.I have created a project on image processing so I have created few m-files for different image processing functions.there is GUI where user can select different sources and then based on user selection,he is directed to different m files.Now i want to create a single executable with all m-files,fig files,mat files.
I am using MS VS 2010 compiler.When i use deployment tool and add all files to my project,it starts compiling but i get following error:
"Warning: an error occurred while parsing class emlcoder.InferenceReport: Undefined function 'findclass' for input arguments of type 'double'."
When I am running my matlab code,its working fine.then Why i am getting this error?

Melden Sie sich an, um zu kommentieren.

Daniel Shub
Daniel Shub am 17 Mai 2012

0 Stimmen

This has been asked so often it is FAQ 3.10

4 Kommentare

ya,Daniel I have read that article before.but I want to add more than one files in my standalone application.Also when I use deployment tool and all files,I sometimes get errors.I am using MS VS 2010 compiler.When I am creating standalone application,it is combining all files,fig,mat files and creating a single exe file.
Can I create a setup (.exe) file which can be extracted like other softwares which we get in market?
That has the making of a much better question(s). For the issue with the compiler and the errors, you need to provide much more detail about what the errors are, the steps that lead to the errors, and your system (OS, MATLAB version, Compiler version). It sound like currently you run the compiler N times and get N executables, and you want to create one executable that will install the N executables. In Linux you would just create a tarball. I am sure it can be done in Windows also, but it might not be a MATLAB question. This again would be a new, and much more interesting, question.
While compiling my MATLAB code,I am getting following error: "Warning: an error occurred while parsing class emlcoder.InferenceReport: Undefined function 'findclass' for input arguments of type 'double'."
When I am running my matlab code,its working fine.then Why i am getting this error?I am using MS Visual studio 2010 compiler.
As I said before, this is a new question.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Compiler finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 16 Mai 2012

Community Treasure Hunt

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

Start Hunting!

Translated by