I am trying to add two numbers in App designer code view and i am getting following error message
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
UDITA PANT
le 15 Avr 2019
Commenté : Joriel Jade Festin
le 31 Mai 2022
% Callback function: Button, EditField3
function ButtonPushed(app, event)
a = app.EditField;
b = app.EditField2;
c= a + b;
app.EditField3 = c;
I am getting the following error.
Undefined function 'plus' for input arguments of type 'matlab.ui.control.NumericEditField'.
0 commentaires
Réponse acceptée
Dennis
le 15 Avr 2019
You need to access the value stored in your edit fields:
a = app.EditField.Value;
b = app.EditField2.Value;
c= a + b;
app.EditField3.Value = c;
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!