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

조회 수: 7 (최근 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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by