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

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?

댓글을 달려면 로그인하십시오.

답변 (2개)

Thomas
Thomas 2012년 5월 17일

1 개 추천

댓글 수: 1

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?

댓글을 달려면 로그인하십시오.

Daniel Shub
Daniel Shub 2012년 5월 17일

0 개 추천

This has been asked so often it is FAQ 3.10

댓글 수: 4

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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

질문:

2012년 5월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by