How to display output parameter to textbox in AppDesigner?

44 vues (au cours des 30 derniers jours)
MK
MK le 16 Fév 2021
Commenté : MK le 16 Fév 2021
In AppDesigner, I created a program that returns one specific numeric value. I want this value to appear as text next to the pushbutton that activates the calculation. Which component from the library should I choose for this?
Pushbutton "CALC" activates the m.file with the calculation code:
% Button pushed function: CALCButton
function CALCButtonPushed(app, event)
run CC.m
How to write the function for the pushbutton and for the display field correctly?
Thanks in advance!

Réponse acceptée

Mario Malic
Mario Malic le 16 Fév 2021
Hello,
convert your script to function, outputting the number. Use the Editfield numeric to display the number.
function CALCButtonPushed(app, event)
result = CC();
app.EditField.Value = result;
end

Plus de réponses (0)

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by