Can I get command window strings to display (live) in App Designer?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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).
0 comentarios
Respuestas (1)
Xabier Lazkano
el 18 de Jun. de 2020
Editada: Xabier Lazkano
el 18 de Jun. de 2020
Try this. I have tried it and works, but if you compile and create a .exe, it does not.
Bye!
0 comentarios
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!