how to solve 3 equations in 1 st order using rk4 method

조회 수: 1 (최근 30일)
Mallikarjun Bangi
Mallikarjun Bangi 2017년 10월 16일
답변: Mischa Kim 2017년 10월 16일
%%Initial inputs values
x = 10000.0;
y = 0.0;
theta = 30deg;
V = 300m/s;
%%3 main equations inter dependant
xdot = (dx/dt) = V*cos(theta);
ydot = (dy/dt) = V*sin(theta);
thetadot = (dtheta/dt) = acc/V;
%%Note: we can derive V = sqrt(xdot^2 + ydot^2); "Integration" or by using "S-function" of Xdot and ydot we will get instatenous x, y values at every step size w.r.to given acceleration variable (acc);
can anyone pls give some idea to solve it

답변 (1개)

Mischa Kim
Mischa Kim 2017년 10월 16일
Mallikarjun, check out this answer for the Lorentz attractor.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by