MATLAB Doing a phase-space portrait in matlab

  • Thread starter Thread starter bagram
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
The discussion revolves around a system of equations involving transformations represented by matrices, specifically for plotting a phase-space portrait in MATLAB. The user seeks assistance in visualizing the equations, which include exponential and trigonometric functions, and expresses frustration with previous attempts using MATLAB functions like ezsurf and surf. A key suggestion is to compute the derivatives at t=0 on a grid and utilize the quiver() function to create a vector field. There is a question about whether calculating the derivative at t=0 is equivalent to setting n=0, indicating a need for clarification on the relationship between time and the iterative index in the equations.
bagram
Messages
5
Reaction score
0
So I have this system of equations:

\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}

where
I_{n}=x_{n}^2+y_{n}^2

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

Any help would be great
 
Physics news on Phys.org
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.
 
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?
 

Similar threads

Replies
1
Views
2K
Replies
3
Views
2K
Replies
8
Views
3K
Replies
6
Views
7K
Replies
10
Views
3K
Replies
1
Views
2K
Back
Top