» load lab7task1a
» who

Your variables are:

ans       t         y2a       

» who

Your variables are:

ans       t         task2a    tout      y2a       

» plot(task2a(:,1),task2a(:,2))
» plot(task2a(:,1),task2a(:,2))
» hold on
» plot(t,y2a,'.')
» plot(t,y2a,'.')
» plot(t,y2a,'.')
» [xx,yy]=ginput(1)

xx =

    0.2166


yy =

    0.0058

» y2anew=y2a(216:length(y2a));
» t2anew=t(1:(length(t)-215));
» plot(t2anew,y2anew)
» plot(t2anew,y2anew,'.')
» who

Your variables are:

ans       t2anew    tout      y2a       yy        
t         task2a    xx        y2anew    

» hold on
» plot(task2a(:,1),task2a(:,2))
» plot(task2a(:,1),task2a(:,2),'r')
» 