Solving a linear ode in matlab using RK method of order 4 and 5
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
solving this linear ode. I'm a beginner in matlab so provide a code for system of equations.solving a linear ode in matlab using RK method of order 5.provide a MATLAB code for my system of ode's $$dx/dt= lambda-sigma*x(t)-c*v(t),\ dv/dt= k*v(t)-a*z(t),\ dz/dt= h*x(t)-tau*v(t)$$ with initial conditions $x(0)=x_0$, $ v(0)=v_0$, $ z(0)=z_0$. Where $lambda = 0.25$, $sigma= 0.0028$, $c=0.013$, $k=0.0065$, $a=0.0013$, $h= 0.0000006$, $tau=0.0000085$, $v=0.00045$.
differential-equations
 |Â
show 1 more comment
up vote
0
down vote
favorite
solving this linear ode. I'm a beginner in matlab so provide a code for system of equations.solving a linear ode in matlab using RK method of order 5.provide a MATLAB code for my system of ode's $$dx/dt= lambda-sigma*x(t)-c*v(t),\ dv/dt= k*v(t)-a*z(t),\ dz/dt= h*x(t)-tau*v(t)$$ with initial conditions $x(0)=x_0$, $ v(0)=v_0$, $ z(0)=z_0$. Where $lambda = 0.25$, $sigma= 0.0028$, $c=0.013$, $k=0.0065$, $a=0.0013$, $h= 0.0000006$, $tau=0.0000085$, $v=0.00045$.
differential-equations
1
Is it order 4 or order 5? Do you have a link to a Butcher tableau that represents the method? Use the search field for[matlab] rk4
here and on stackoverflow for other examples.
– LutzL
Jul 22 at 18:26
Or do you want to use the matlab solverode45
which implements an embedded RK method of orders 4 and 5?
– LutzL
Jul 22 at 18:29
Yes to be solved using ode 45 sir.
– Sugny
Jul 22 at 18:31
Have you read the documentation and studied the examples there? If you search for ode45 and systems you should find many examples.
– LutzL
Jul 22 at 18:34
They have applied fitting method in matlab to solve this equation.
– Sugny
Jul 25 at 17:53
 |Â
show 1 more comment
up vote
0
down vote
favorite
up vote
0
down vote
favorite
solving this linear ode. I'm a beginner in matlab so provide a code for system of equations.solving a linear ode in matlab using RK method of order 5.provide a MATLAB code for my system of ode's $$dx/dt= lambda-sigma*x(t)-c*v(t),\ dv/dt= k*v(t)-a*z(t),\ dz/dt= h*x(t)-tau*v(t)$$ with initial conditions $x(0)=x_0$, $ v(0)=v_0$, $ z(0)=z_0$. Where $lambda = 0.25$, $sigma= 0.0028$, $c=0.013$, $k=0.0065$, $a=0.0013$, $h= 0.0000006$, $tau=0.0000085$, $v=0.00045$.
differential-equations
solving this linear ode. I'm a beginner in matlab so provide a code for system of equations.solving a linear ode in matlab using RK method of order 5.provide a MATLAB code for my system of ode's $$dx/dt= lambda-sigma*x(t)-c*v(t),\ dv/dt= k*v(t)-a*z(t),\ dz/dt= h*x(t)-tau*v(t)$$ with initial conditions $x(0)=x_0$, $ v(0)=v_0$, $ z(0)=z_0$. Where $lambda = 0.25$, $sigma= 0.0028$, $c=0.013$, $k=0.0065$, $a=0.0013$, $h= 0.0000006$, $tau=0.0000085$, $v=0.00045$.
differential-equations
edited Jul 22 at 19:34
asked Jul 22 at 18:23
Sugny
11
11
1
Is it order 4 or order 5? Do you have a link to a Butcher tableau that represents the method? Use the search field for[matlab] rk4
here and on stackoverflow for other examples.
– LutzL
Jul 22 at 18:26
Or do you want to use the matlab solverode45
which implements an embedded RK method of orders 4 and 5?
– LutzL
Jul 22 at 18:29
Yes to be solved using ode 45 sir.
– Sugny
Jul 22 at 18:31
Have you read the documentation and studied the examples there? If you search for ode45 and systems you should find many examples.
– LutzL
Jul 22 at 18:34
They have applied fitting method in matlab to solve this equation.
– Sugny
Jul 25 at 17:53
 |Â
show 1 more comment
1
Is it order 4 or order 5? Do you have a link to a Butcher tableau that represents the method? Use the search field for[matlab] rk4
here and on stackoverflow for other examples.
– LutzL
Jul 22 at 18:26
Or do you want to use the matlab solverode45
which implements an embedded RK method of orders 4 and 5?
– LutzL
Jul 22 at 18:29
Yes to be solved using ode 45 sir.
– Sugny
Jul 22 at 18:31
Have you read the documentation and studied the examples there? If you search for ode45 and systems you should find many examples.
– LutzL
Jul 22 at 18:34
They have applied fitting method in matlab to solve this equation.
– Sugny
Jul 25 at 17:53
1
1
Is it order 4 or order 5? Do you have a link to a Butcher tableau that represents the method? Use the search field for
[matlab] rk4
here and on stackoverflow for other examples.– LutzL
Jul 22 at 18:26
Is it order 4 or order 5? Do you have a link to a Butcher tableau that represents the method? Use the search field for
[matlab] rk4
here and on stackoverflow for other examples.– LutzL
Jul 22 at 18:26
Or do you want to use the matlab solver
ode45
which implements an embedded RK method of orders 4 and 5?– LutzL
Jul 22 at 18:29
Or do you want to use the matlab solver
ode45
which implements an embedded RK method of orders 4 and 5?– LutzL
Jul 22 at 18:29
Yes to be solved using ode 45 sir.
– Sugny
Jul 22 at 18:31
Yes to be solved using ode 45 sir.
– Sugny
Jul 22 at 18:31
Have you read the documentation and studied the examples there? If you search for ode45 and systems you should find many examples.
– LutzL
Jul 22 at 18:34
Have you read the documentation and studied the examples there? If you search for ode45 and systems you should find many examples.
– LutzL
Jul 22 at 18:34
They have applied fitting method in matlab to solve this equation.
– Sugny
Jul 25 at 17:53
They have applied fitting method in matlab to solve this equation.
– Sugny
Jul 25 at 17:53
 |Â
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2859647%2fsolving-a-linear-ode-in-matlab-using-rk-method-of-order-4-and-5%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Is it order 4 or order 5? Do you have a link to a Butcher tableau that represents the method? Use the search field for
[matlab] rk4
here and on stackoverflow for other examples.– LutzL
Jul 22 at 18:26
Or do you want to use the matlab solver
ode45
which implements an embedded RK method of orders 4 and 5?– LutzL
Jul 22 at 18:29
Yes to be solved using ode 45 sir.
– Sugny
Jul 22 at 18:31
Have you read the documentation and studied the examples there? If you search for ode45 and systems you should find many examples.
– LutzL
Jul 22 at 18:34
They have applied fitting method in matlab to solve this equation.
– Sugny
Jul 25 at 17:53