Doing a phase-space portrait in matlab

  • MATLAB
  • Thread starter bagram
  • Start date
  • #1
6
0

Main Question or Discussion Point

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
 

Answers and Replies

  • #2
kreil
Insights Author
Gold Member
668
67
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.
 
  • #3
6
0
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?
 

Related Threads on Doing a phase-space portrait in matlab

Replies
4
Views
644
  • Last Post
Replies
2
Views
8K
Replies
0
Views
2K
Replies
0
Views
6K
Replies
8
Views
4K
Replies
3
Views
1K
Replies
5
Views
302
  • Last Post
Replies
1
Views
5K
  • Last Post
Replies
1
Views
8K
Top