Doing a phase-space portrait in matlab

  • Context: MATLAB 
  • Thread starter Thread starter bagram
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
SUMMARY

The discussion focuses on generating a phase-space portrait in MATLAB for a system of equations defined by a transformation matrix involving exponential and trigonometric functions. The user seeks assistance in plotting this phase-space portrait, specifically using the quiver() function to visualize the vector field. The conversation highlights the importance of computing derivatives at t=0 and clarifies that this is equivalent to evaluating at n=0.

PREREQUISITES
  • Understanding of MATLAB programming and syntax
  • Familiarity with linear algebra concepts, particularly matrix transformations
  • Knowledge of phase-space analysis and vector fields
  • Experience with MATLAB plotting functions, especially quiver()
NEXT STEPS
  • Research how to compute derivatives in MATLAB using symbolic math
  • Learn about the quiver() function for visualizing vector fields in MATLAB
  • Explore examples of phase-space portraits in MATLAB
  • Study the implications of initial conditions in dynamical systems
USEFUL FOR

Mathematics students, engineers, and researchers interested in dynamical systems and phase-space analysis using MATLAB.

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 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K