필터 지우기
필터 지우기

How to display the output using GUI? (not guide)

조회 수: 1 (최근 30일)
minsoo kim
minsoo kim 2017년 12월 4일
답변: KL 2017년 12월 4일
I made a certain function that returns value A and that function is activated every time after I push a pushbutton.
Problem is, I have no idea how to display the output.
I mean, if I want to use pushbutton, I'll type "pushbutton('string','blabla',...).
But in the case of display something, I don't know exact code to make it work.
How can I solve this problem?

답변 (1개)

KL
KL 2017년 12월 4일
Have a textbox in your GUI and set this textbox's value in your pushbutton callback
function pushbutton_callback(...)
%code to calculate A
set(handles.edit1,'Value',num2str(A)); %for example
end

카테고리

Help CenterFile Exchange에서 GUIDE 앱 마이그레이션하기에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!