sliding mode phase plane
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Murtadha Abushahin
am 4 Sep. 2014
Kommentiert: Murtadha Abushahin
am 11 Sep. 2014
how can i plot phase plane trajectory of sliding mode controller .
2 Kommentare
Aykut Satici
am 4 Sep. 2014
I would simulate a second-order ode with a sliding mode controller and then plot the two states against each other.
Akzeptierte Antwort
Aykut Satici
am 5 Sep. 2014
Would you like to do this in MATLAB or Simulink? I have worked through a baby example that is implemented in MATLAB, using the "ode45" solver.
You can find the problem that is worked in the attached PDF-file. The MATLAB codes that implement the control and plot the phase portrait are the M-files.
To start the simulation you need to run "slidingModeExampleRunner.m." This file just calls the code that performs the simulation ("slidingModeExample.m") and once it is done, it calculates the value of the function "s", which defines the sliding manifold, at each solution step. It then creates two plots, the first one is the phase portrait and the sliding manifold plotted on the same axes. The second one is the function "s" plotted against time.
The system's equations of motion, which are given by equation (1) in the PDF-file, are coded in the M-file "slidingModeSystemEoM." You can see that the control law is implemented here, too. These ODEs are then fed into MATLAB's ODE solver "ode45" within the file "slidingModeExample.m", where I have defined the various constants and initial conditions used for the problem.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Pole and Zero Locations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!