function dufort; clf; tt=0.04; h=0.01; plot([0:h:1],ftcs(h,tt),'b.'); hold on; %h=0.02; plot([0:h:1],ftcs(h,tt),'r.'); hold on; %h=0.05; plot([0:h:1],ftcs(h,tt),'g.'); hold on; h=0.01; plot([0:h:1],df(h,tt),'r'); hold on; function y=ftcs(h,tt); n=round(1/h); x=zeros(1,n); x=sin([0:n]*2*pi/n); %x(round(0.2/h))=10; y=x; % plot([h:h:1],y,'g'); hold on; m=0.4; k=m*h^2; t=0; while k*t