MATLAB Answers

0

Solving coupled equations in Matlab

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.

태그

답변 수: 2

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
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.
Hii..Sorry for the belated reply.
I followed the following way
Delk=[1:20];
for i=1:20
delk=Delk(i)
[Z1,B] = ode45(@(t,x)DFG789(t,x,delk),[0 3],[(0.1) 0 1]);
Z1_complete(i,:,:)=Z1(:,:);
end
:)
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.


Taimur Zaman 님의 답변 5 Oct 2018

https://sites.google.com/site/srcombexp/home/matlab-script-help/solution-to-multiple-couples-non-linear-equations

  댓글 수: 0

로그인 to comment.



Translated by