Ode

July 25, 2016 | Author: encipher | Category: Types, School Work
Share Embed Donate


Short Description

MATLAB ode example...

Description

>> >> >> >> >>

[t, x] = ode45(@diff_t1, [0, 10], [0.51292, 0]); ode45(@diff_t1, [0, 10], [0.51292, 0]) legend('phi*', 'phi*'''); xlabel('eta'); trapz(t,x(:,1).*t)

ans = 1.000002418814159 >> function xdot = diff_t1(t,x) xdot(1) = x(2); xdot(2) = t*(-1/3*t*x(2)-2/3*x(1)); xdot = xdot';

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF