summaryrefslogtreecommitdiff
path: root/3432/CH7/EX7.8/Ex7_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '3432/CH7/EX7.8/Ex7_8.sce')
-rw-r--r--3432/CH7/EX7.8/Ex7_8.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3432/CH7/EX7.8/Ex7_8.sce b/3432/CH7/EX7.8/Ex7_8.sce
new file mode 100644
index 000000000..32d383597
--- /dev/null
+++ b/3432/CH7/EX7.8/Ex7_8.sce
@@ -0,0 +1,21 @@
+//Example 7.8
+//Time scaling an oscillator.
+
+xdel(winsid())//close all graphics Windows
+clear;
+clc;
+//------------------------------------------------------------------
+// State space model of an oscillator
+wn=15000 // rad/sec
+F=[0 1;wn^2 0];
+G=[0;10^6];
+disp(G,"G",F,"F","Given system");
+
+//------------------------------------------------------------------
+// State space model of the time-scaled system for
+// a millisecond scale w0=1e3;
+w0=1e3; //rad/sec
+F1=F/w0;
+G1=G/w0;
+disp(G1,"G1",F1,"F1","Time scaled system in mm");
+//------------------------------------------------------------------