t = linspace(-1,1,401); tsq = t.*t; y = 2.0*exp(-20.0*tsq) - exp(-8.0*tsq); plot(t,y,'k','LineWidth',2);
Published with MATLAB® 7.6