필터 지우기
필터 지우기

Create stand alone app without GUI?

조회 수: 5 (최근 30일)
DC
DC 2021년 4월 10일
댓글: DC 2021년 4월 11일
I have a simple Matlab script that selects a few Excel files from a given folder, reads-in the data and does some simple data processing saving the results in another Excel file. I select the folder with the needed files using uigetdir.
I've created a stand alone app for it, but when I run it nothing happens, I don't get the pop-up to select the folder with the files, I only get the splash screen. The app name appears in the Task Manager and stays there... What am I doing wrong?
  댓글 수: 2
dpb
dpb 2021년 4월 10일
편집: dpb 2021년 4월 10일
Dunno...haven't tried but where is the code that calls uigetdir located in the app?
I've been building an app that does similar thing -- before I put any GUI stuff into it, it ran as you describe but did execute the code to read the input Excel files and wrote the output one with only the splash screen visible. So, the code ran as intended to do the work; just no user interaction at all.
In my case, wanting it basically to be "no hands needed!" for the most common usage, I added a menu to let the user change the default input/output files instead of trying to call uigetdir from the inline code, but all worked that way. The call to uigetdir is in the menu callback function.
If you don't want the menu at all, I don't see why a uigetdir call wouldn't be executed if in the startup section, though, but I've not tried just that by its lonesome.
DC
DC 2021년 4월 11일
I had my startup file configured to ask for a user input to load the corresponding Matlab path, apparently that's why the app was waiting and not opening the window to select the folder. After I commented out those lines in my startup it works fine.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by