Effacer les filtres
Effacer les filtres

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

14 vues (au cours des 30 derniers jours)
Harrison Schipke
Harrison Schipke le 3 Nov 2018
Modifié(e) : Xabier Lazkano le 18 Juin 2020
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).

Réponses (1)

Xabier Lazkano
Xabier Lazkano le 18 Juin 2020
Modifié(e) : Xabier Lazkano le 18 Juin 2020
Try this. I have tried it and works, but if you compile and create a .exe, it does not.
Bye!

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by