diff options
Diffstat (limited to 'Working_Examples/3432/CH7/EX7.8')
-rwxr-xr-x | Working_Examples/3432/CH7/EX7.8/Ex7_8.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Working_Examples/3432/CH7/EX7.8/Ex7_8.sce b/Working_Examples/3432/CH7/EX7.8/Ex7_8.sce new file mode 100755 index 0000000..32d3835 --- /dev/null +++ b/Working_Examples/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"); +//------------------------------------------------------------------ |