You are on page 1of 1

a=str2num(get(handles.

edit1,'String'));
b=str2num(get(handles.edit2,'String'));
c=str2num(get(handles.edit3,'String'));
x=-5:0.01:5;
y=a*x.^2+b*x+c;
plot(x,y);

benarrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr

texta=get(handles.edit1,'String');
textb=get(handles.edit2,'String');
textc=get(handles.edit3,'String');
a=str2num(char(texta));
b=str2num(char(textb));
c=str2num(char(textc));
x=-3:0.01:3;
y=a*x.^2+b*x+c;
plot(x,y);

You might also like