%example of a function calling another function (here parabinfo) function myparab() disp('enter the coefficients for ax^2 + bx+c') a = input('enter a') b =input('enter b') c=input('enter c') x = -b/(2*a); x1 = [x-10:0.1:x+10]; y=a*x1.^2 + b*x1+c; plot(x1,y); hold on; plot(x,a*x.^2 + b*x+c,'ob'); hold off; parabinfo(a,b,c)