GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - auralius/phase_plot: Phase portrait plot for SECOND and THIRD order ODE

BranchesTags
Open more actions menu

Latest commit

 

History

21 Commits
21 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
example.png
example.png
 
 
interactive1.gif
interactive1.gif
 
 
interactive2.gif
interactive2.gif
 
 
mytest1.m
mytest1.m
 
 
mytest2.m
mytest2.m
 
 
mytest3.m
mytest3.m
 
 
mytest4.m
mytest4.m
 
 
mytest5.m
mytest5.m
 
 
phase_plot.m
phase_plot.m
 
 
phase_plot2.m
phase_plot2.m
 
 
phase_plot_1_interactive.m
phase_plot_1_interactive.m
 
 
phase_plot_2_interactive.m
phase_plot_2_interactive.m
 
 

Repository files navigation

View Phase Plot with GUI for 1st and 2nd order ODE on File Exchange

phase_plot

With transfer function in s-domain.

% Phase portrait plot for SECOND and THIRD order ODE
% sys is the system transfer function (in s-domain)
%
% intial_values is ithe initial states of th system (vector of nx1)
%     where n is the order of the system
%
% range is the minimum and the maximum boundary for the states
%     e.g: 3rd order system, with states: x1, x2, and x3
%     [x1_min x1_max; x2_min x2_max; x3_min x3_max]
%
% simtime is the simulation time
%
% scale is used to adjust the dimension of the arrows
%     this corresponds to the AutoScale property of the quiver function

% References:
%     http://matlab.cheme.cmu.edu/2011/08/09/phase-portraits-of-a-system-of-odes/

phase_plot2

With callback function to allow the use of nonlinear function.

function phase_plot2(f, intial_values, range, simtime, scale)
% Phase portrait plot for a SECOND order ODE
% f is the system function that will besolve using ode45, it must return 
%     a column vector (2x1).
%
% intial_values is ithe initial states of th system (vector of 2x1)
%
% simtime is the simulation time
%
% scale is used to adjust the dimension of the arrows
%     this corresponds to the AutoScale property of the quiver function

% References:
%     http://matlab.cheme.cmu.edu/2011/08/09/phase-portraits-of-a-system-of-odes/

alt tag

phase_plot_1_interactive

alt tag

phase_plot_2_interactive

alt tag

About

Phase portrait plot for SECOND and THIRD order ODE

Topics

matlabodephase-planephase-plotphase-portrait

Resources

Readme
Activity

Stars

19 stars

Watchers

3 watching

Forks

9 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.