matlab executable file

Hello.
Can I generate an exe file that will launch (F5) my pre- written code?
when I say "Executable file", I mean an Icon on my desktop that will do the same as if I've got into matlab, opened my pre- written & saved code, and pressed F5.
Does it matter if my code calls another function that I wrote?
Matar

댓글 수: 5

praveen
praveen 2011년 6월 11일
you want an exe file to press F5 (click on run)?
or you want to convert your code to an executable file?
Image Analyst
Image Analyst 2011년 6월 12일
I agree with the others that your question is confusing and most likely does not describe what you really want to do. However, making the very unlikely assumption that you meant exactly what you wrote, you can make an executable (in any language you want, for example VB, C#, or Java) that can control MATLAB via the ActiveX interface. For more info, see this newsgroup thread:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/305831
matar maoz
matar maoz 2011년 6월 12일
I'm sorry.
I have edited my question.
Fangjun Jiang
Fangjun Jiang 2011년 6월 13일
Then follow the topic I gave in my answer. You can compile your m-file into an .exe file if you have the toolbox.
matar maoz
matar maoz 2011년 6월 14일
Image Analyst, thanke you. You were very helpful.
How can I mark you'r comment as an accepted answer?
Matar

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

 채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 6월 12일

0 개 추천

You mean when you press F5 in M-editor, your M-script will run? You need to have the Matlab Compiler toolbox to compile M-file to an executable.
help mcc
help deploytool

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 6월 12일

0 개 추천

Yes, you could probably write something that used the Java Robot Class.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by