Solving a linear ode in matlab using RK method of order 4 and 5

The name of the pictureThe name of the pictureThe name of the pictureClash 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$.







share|cite|improve this question

















  • 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















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$.







share|cite|improve this question

















  • 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













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$.







share|cite|improve this question













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$.









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








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 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













  • 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








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
















active

oldest

votes











Your Answer




StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Color the edges and diagonals of a regular polygon

Relationship between determinant of matrix and determinant of adjoint?