15.08.2015 Views

Introduction to the Modeling and Analysis of Complex Systems

introduction-to-the-modeling-and-analysis-of-complex-systems-sayama-pdf

introduction-to-the-modeling-and-analysis-of-complex-systems-sayama-pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

50 CHAPTER 4. DISCRETE-TIME MODELS I: MODELINGano<strong>the</strong>r way <strong>of</strong> visualizing simulation results in a phase space. If your model involves justtwo state variables (or three if you know 3-D plotting), you should try this visualization <strong>to</strong>see <strong>the</strong> structure <strong>of</strong> <strong>the</strong> phase space. All you need <strong>to</strong> do is <strong>to</strong> replace <strong>the</strong> following partCode 4.14:plot(xresult)plot(yresult)with this:Code 4.15: oscillation-correct-phasespace.pyplot(xresult, yresult)This will produce a trajec<strong>to</strong>ry <strong>of</strong> <strong>the</strong> system state in an x-y phase space, which clearlyshows that <strong>the</strong> system is in an oval, periodic oscillation (Fig. 4.4), which is a typical signature<strong>of</strong> a linear system.1.51.00.50.00.51.01.52.0 1.5 1.0 0.5 0.0 0.5 1.0 1.5 2.0Figure 4.4: Visualization <strong>of</strong> <strong>the</strong> simulation result in a phase space using Code 4.15.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!