summaryrefslogtreecommitdiff
path: root/3432/CH7/EX7.13/Ex7_13.sce
diff options
context:
space:
mode:
Diffstat (limited to '3432/CH7/EX7.13/Ex7_13.sce')
-rw-r--r--3432/CH7/EX7.13/Ex7_13.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3432/CH7/EX7.13/Ex7_13.sce b/3432/CH7/EX7.13/Ex7_13.sce
new file mode 100644
index 000000000..82c5e3b49
--- /dev/null
+++ b/3432/CH7/EX7.13/Ex7_13.sce
@@ -0,0 +1,24 @@
+//Example 7.13
+//Zeros for the Thermal System from a State Description
+
+xdel(winsid())//close all graphics Windows
+clear;
+clc;
+//------------------------------------------------------------------
+// State space model of the given system
+F=[-7 -12; 1 0];
+G=[1;0];
+H=[1 2];
+J=0;
+sysG=syslin('c',F,G,H,J)
+//------------------------------------------------------------------
+//Transfer function model
+[d num den]=ss2tf(sysG);
+zr=roots(num);
+disp(zr,'zr=');
+//Alternately, it can be obtained as
+zr=trzeros(sysG);
+disp(zr,'zr=');
+//------------------------------------------------------------------
+
+