Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Doing a phase-space portrait in matlab

  1. Sep 18, 2013 #1
    So I have this system of equations:

    [tex] \binom{x_{n+1}}{y_{n+1}}=\begin{pmatrix}e^{r} & 0 \\ 0 & e^{-r} \end{pmatrix}\begin{pmatrix}cos(\phi+I_{n}) & -sin(\phi+I_{n}) \\ sin(\phi+I_{n}) & cos(\phi+I_{n}) \end{pmatrix}\begin{pmatrix}x_{n}\\ y_{n} \end{pmatrix}[/tex]

    where
    [tex]I_{n}=x_{n}^2+y_{n}^2[/tex]

    I have no idea how to plot that in matlab as a phase-space portrait...

    Any help would be great
     
  2. jcsd
  3. Sep 19, 2013 #2

    kreil

    User Avatar
    Gold Member

    What have you tried?

    In general you would compute the derivatives at t=0 on a grid, then plot them as a vector field using the quiver() function.
     
  4. Sep 19, 2013 #3
    i've tried, generating a set and points and just sketching it and tried using the ezsurf/surf function to do it... but both ways failed. Does completing the derivative at t=0 the same as n=0?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Doing a phase-space portrait in matlab
  1. Phase portrait (Replies: 2)

Loading...