|
From: <par...@us...> - 2012-09-22 10:45:23
|
Revision: 11080
http://octave.svn.sourceforge.net/octave/?rev=11080&view=rev
Author: paramaniac
Date: 2012-09-22 10:45:18 +0000 (Sat, 22 Sep 2012)
Log Message:
-----------
control: use multiplot step command (3)
Modified Paths:
--------------
trunk/octave-forge/main/control/inst/Madievski.m
Modified: trunk/octave-forge/main/control/inst/Madievski.m
===================================================================
--- trunk/octave-forge/main/control/inst/Madievski.m 2012-09-22 10:42:26 UTC (rev 11079)
+++ trunk/octave-forge/main/control/inst/Madievski.m 2012-09-22 10:45:18 UTC (rev 11080)
@@ -86,18 +86,11 @@
w = {1e-2, 1e1};
% Bode Plot of Controller
+figure (1)
bode (K, Kr4, Kr2, w)
-legend ('K (8 states)', 'Kr (4 states)', 'Kr (2 states)', 'location', 'southwest')
+legend ('K (8 states)', 'Kr (4 states)', 'Kr (2 states)', 'Location', 'SouthWest')
% Step Response of Closed Loop
-[y, t] = step (T, 100);
-[yr4, tr4] = step (Tr4, 100);
-[yr2, tr2] = step (Tr2, 100);
-
figure (2)
-plot (t, y, tr4, yr4, tr2, yr2)
-grid ('on')
-title ('Step Response of Closed Loop')
-xlabel ('Time [s]')
-ylabel ('Output [-]')
+step (T, Tr4, Tr2, 100)
legend ('K (8 states)', 'Kr (4 states)', 'Kr (2 states)', 'Location', 'SouthEast')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|