MATLAB Answers

Solving coupled equations in Matlab

조회 수: 71(최근 30일)
Hii Friend,
I have set of coupled differential equations which i need to solve and plot using matlab.
I am confused on how to proceed.Do suggest me on how to proceed with it.
The final out needed is a plot of abs(B(1)) Versus delk versus Z as shown in the pic.

  댓글 수: 0

로그인 to comment.

채택된 답변

Star Strider
Star Strider 29 Jan 2015
See the documentation on Ordinary Differential Equations.
First, follow the documentation and write your ODE function, then use the appropriate ODE solver (try ode45 first) to integrate it. If you have problems, describe them, completely copying and pasting any error messages that occur, and attach your script and your ODE function files. We will do our best to help you get your code running if you need our help.

  댓글 수: 15

표시 이전 댓글 수: 12
Star Strider
Star Strider 3 Feb 2015
My pleasure.
I would be interested in knowing how you solved the problem. I do not have sufficient understanding of the process you are modeling in your ODE to suggest a solution.
Pavan Kumar
Pavan Kumar 9 Feb 2015
Hii..Sorry for the belated reply.
I followed the following way
for i=1:20
[Z1,B] = ode45(@(t,x)DFG789(t,x,delk),[0 3],[(0.1) 0 1]);
Star Strider
Star Strider 9 Feb 2015
No worries!
Thank you for following up.
I was curious as to how you incorporated the vector into your ODE function, as much to satisfy my curiosity as to help anyone else who searches for your Question with the same problem.

로그인 to comment.

추가 답변(1개)

Taimur Zaman
Taimur Zaman 5 Oct 2018

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by