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

7 visualizzazioni (ultimi 30 giorni)
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).

Risposte (1)

Xabier Lazkano
Xabier Lazkano il 18 Giu 2020
Modificato: Xabier Lazkano il 18 Giu 2020
Try this. I have tried it and works, but if you compile and create a .exe, it does not.
Bye!

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by