フィルターのクリア

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 Center および File ExchangeDevelop 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