Position-Velocity phase plane portrait in MATLAB?

  • Context: MATLAB 
  • Thread starter Thread starter currently
  • Start date Start date
  • Tags Tags
    Matlab Phase Plane
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
currently
Messages
21
Reaction score
5
TL;DR
How to graph a Position-Velocity phase plane portrait?
For example, how would I graph a Position-Velocity phase portrait of a nodal sink or spiral sink?
Given form of mx'' = -cx' - kx + βx^3.
 
Physics news on Phys.org
To get a plot you’ll have to numerically integrate it using MATLAB using rk4 or something similar.

If you look online at the Matlab site or do a google search you should be able to find examples to base your solution on.
 
currently said:
Summary:: How to graph a Position-Velocity phase plane portrait?

For example, how would I graph a Position-Velocity phase portrait of a nodal sink or spiral sink?
Given form of mx'' = -cx' - kx + βx^3.

You could also create the system within Simulink and link it to an interactive live Matlab script.

For example, here is a 2nd-order system with some damping (you could also include some extra blocks for your other term)
Screen Shot 2020-01-08 at 5.50.50 PM.png


Then we link it to the Matlab script:
1. Define our variables
2. Run the simulation and extract the data
3. Plot the data

1.
Screen Shot 2020-01-08 at 5.52.07 PM.png


2.
Screen Shot 2020-01-08 at 5.52.26 PM.png


3.
Screen Shot 2020-01-08 at 5.52.34 PM.png


Hope that is of some help.

Note: there will be a few more things to define within Simulink, but a youtube introductory video should show you how to use the blocks