This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: time2(i) = time2(i-1)+step2; end; step3 = 0.15; interval3 = tfnal/step3; time3 = zeros(1,interval3+1); approx3 = zeros(1,interval3+1); time3(1) = tinitial; approx3(1) = 0.9; For i = 2:interval3+1 approx3(i) = approx3(i-1) - approx3(i-1)*(1-approx3(i-1))*step3; time3(i) = time3(i-1)+step3; end; fgure(1); A=plot(time3,approx3,' . ', time2,approx2, '-.',time1,approx1, '--');...
View Full Document
This note was uploaded on 11/19/2011 for the course MATH 101 taught by Professor Wormer during the Spring '08 term at UCSD.
- Spring '08