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

4 vues (au cours des 30 derniers jours)
minsoo kim
minsoo kim le 4 Déc 2017
Réponse apportée : KL le 4 Déc 2017
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?

Réponses (1)

KL
KL le 4 Déc 2017
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

Catégories

En savoir plus sur 대화형 방식 컨트롤과 콜백 dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!