ODE system phase plane

조회 수: 122(최근 30일)
Martin Moreno
Martin Moreno 2020년 4월 19일
편집: Brian Hong 2022년 1월 26일
Hi guys, I have never plotted phase planes in Matlab and would like to include some graphics on a due coursework.
My ODE systems are:
where r,a,c,b,d are all positive constants.
I would like for the plot to include trajectories and a direction field.
Any ideas on how I could do this?
  댓글 수: 1
darova 2020년 4월 20일
Did you solve your equations already?

댓글을 달려면 로그인하십시오.


Ameer Hamza
Ameer Hamza 2020년 4월 20일
  댓글 수: 2
Ameer Hamza
Ameer Hamza 2020년 4월 21일
Martin, can you show the code which cause this error?

댓글을 달려면 로그인하십시오.

Steven Lord
Steven Lord 2020년 4월 20일
Create an options structure using odeset. In your odeset call specify the OutputFcn option to be @odephas2, a function included with MATLAB for creating a 2-dimensional phase plane plot. Pass the options structure returned by odeset into the ODE solver as the appropriate input argument.
The orbitode example uses odephas2 in its execution.

Brian Hong
Brian Hong 2022년 1월 26일
편집: Brian Hong 2022년 1월 26일
You could also use an app. I used pplane in undergrad. We also made a new app for analyzing ODE systems in the phase plane.

Community Treasure Hunt

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

Start Hunting!

Translated by