Adding Polynomials Using App Designer
Afficher commentaires plus anciens
I am new to matlab and I am trying to create a calculator that adds polynomials. I want the user to input something like 3*x+1 and 4*x+1 and have a result of 7*x+2. here is my code but when I try it, it does not display any answer:
% Button pushed function: AddButton
function AddButtonPushed(app, event)
a = str2num(app.fxEditField.Value);
b = str2num(app.gxEditField.Value);
res = a+b;
app.ResultEditField.Value = num2str(res);
end
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Number Theory dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!