Can I get command window strings to display (live) in App Designer?

19 ビュー (過去 30 日間)
Harrison Schipke
Harrison Schipke 2018 年 11 月 3 日
編集済み: Xabier Lazkano 2020 年 6 月 18 日
I have a 'master' script that runs other scripts which process test data I have for my thesis.
Rather then opening and running the 'master' script and getting my results and graphs, I am building a very simple push button app. Both the 'master' script and push button work. I press the button and all my graphs and excel tables are generated.
I am only a beginner at matlab so this next step has confused me. I would like to show information that the command window displays in the app gui. Whether this is done with a textbox, listbox, or figure I dont know. Is it possible to display this data and update it live just like the command window does?
I simply want to show when the 'master' script starts or finished running another script.
This is an extract of the code in the 'master' script'.
set(groot,'defaultFigureVisible','off')
%-----------------Run 1-----------------%
START_1 = 'Run 1 Starting';
disp(START_1)
run_1;
END_1 = 'Run 1 Finished';
disp(END_1)
clear
%-----------------Run 2-----------------%
START_2 = 'Run 2 Starting';
disp(START_2)
run_2;
END_2 = 'Run 2 Finished';
disp(END_2)
clear
%-----------------Run 3-----------------%
START_3 = 'Run 3 Starting';
disp(START_3)
run_3;
END_3 = 'Run 3 Finished';
disp(END_3)
clear
%-----------------Script Complete-----------------%
FIN = 'Data Processing Complete';
disp(FIN)
%=====================================================%
set(groot,'defaultFigureVisible','on')
clear
I would like the text displayed in the command window for this code, also be shown in my GUI (if possible).

回答 (1 件)

Xabier Lazkano
Xabier Lazkano 2020 年 6 月 18 日
編集済み: Xabier Lazkano 2020 年 6 月 18 日
Try this. I have tried it and works, but if you compile and create a .exe, it does not.
Bye!

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by