create a simple .exe file based on a MATLAB code

조회 수: 7 (최근 30일)
Jonathan Soucy
Jonathan Soucy 2019년 8월 26일
댓글: Jonathan Soucy 2019년 8월 26일
I have a code in which only requires the user to choose the directory and hit run to generate data in the form of a txt file from every video file in that folder. Is there a way to turn this code into an exe file so that I can process my data on a computer without matlab?

채택된 답변

Walter Roberson
Walter Roberson 2019년 8월 26일
Possibly. In general, the MATLAB Compiler product can handle many situations like that.
There are some things that it cannot compile, including for example use of the Symbolic Toolbox.
Note: MATLAB Compiler product is not available for Student or Home licenses.
  댓글 수: 3
Walter Roberson
Walter Roberson 2019년 8월 26일
You do not need a GUI. uigetdir() is enough of a GUI for this purpose.
If you compile as a standalone console application then you would need some other way of selecting directories.
You do need to be careful about which directory you are in. Compiled executables start executing in a temporary directory or under your Application Data area. You need to be careful to use fullfile() to construct your file names.
Jonathan Soucy
Jonathan Soucy 2019년 8월 26일
You are exactly right about being careful about directories. I placed all my funtion files within the same folder as my script with uigetdir and was able to compile the application successfully. Thanks!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Package and Share Apps에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by