summaryrefslogtreecommitdiff
path: root/3432/CH7/EX7.13/Ex7_13.sce
blob: 82c5e3b49370f2112f370e7de6b431564087ebe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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=');
//------------------------------------------------------------------