This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: ) ylabel( 'h(m)' ) title( 'Comparison of Linear and NonLinear Model' ) hold on plot(t,ynon) %% Nonlinear Model figure plot(t,error) xlabel( 'Time' ) ylabel( 'Error' ) title( 'Relative Percent Error' ) error= 100*(ynon(20)(y(20)+4))/ynon(20) Following results are obtained; 2 4 6 8 10 12 14 16 18 20 4 4.05 4.1 4.15 4.2 4.25 4.3 4.35 4.4 4.45 4.5 Time h(m) Comparison of Linear and NonLinear Model For linear model h(20)= 4.3983 integrating by Euler Method (RK2) For nonlinear model h(20)= 4.4077 integrating by Euler Method(RK2) And relative percent error between nonlinear model and linear model is e=0.2138 2 4 6 8 10 12 14 16 18 20 0.05 0.1 0.15 0.2 0.25 Time Error Relative Percent Error...
View
Full
Document
This note was uploaded on 10/24/2011 for the course AEE 463 taught by Professor Melin during the Spring '11 term at Middle East Technical University.
 Spring '11
 Melin

Click to edit the document details