close all
clear all
h=0.05 ;
x=-2:h:3;
% Polinomio di secondo grado
y=(x+2).*(x-1);
plot(x,y)
grid

figure
subplot(2,1,1)
plot(x,y)
y1=2*x+1 ;
subplot(2,1,2)
plot(x,y1,'r')
grid

subplot(2,2,1)
subplot(2,2,2)
plot(x,y)
subplot(2,2,3)
plot(x,y)
hold on
plot(x,y1,'r')
grid