hello i have written a function in Matlab:
function [cquad] = aquad(aquadv,bquadv)%UNTITLED2 Summary of this function goes here
% Detailed explanation goes here
cquad = sqrt(aquadv^2+bquadv^2);end
and now wants to output them to the Appdesigner GUI at the touch of a button.
methods (Access = public) function c = aquad(app,aquadv,bquadv) end end % Callbacks that handle component events
methods (Access = private) % Button pushed function: Button
function ButtonPushed(app, event) aquadv=app.aEditField.Value; bquadv=app.bEditField.Value;% c = aquad(app,aquadv,bquadv)
cEditField.Value=c end end
no matter how I try, I always get different flaws
Best Answer