summaryrefslogtreecommitdiff
path: root/3432/CH7/EX7.12/Ex7_12.sce
blob: 2eaead7699e285a9097b70e33f9e3bb90311ff35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//Example 7.12
//Transformation of Thermal System from state description

xdel(winsid())//close all graphics Windows
clear;
clc;
//------------------------------------------------------------------
// State space model of Thermal System
s=%s;
F=[-7 -12; 1 0];
G=[1;0];
H=[1 2];
J=0;
sys=syslin('c',F,G,H,J)
//------------------------------------------------------------------
//Transfer function model of Thermal System
[ch num den]=ss2tf(sys);
disp(num/den, "G=","Transfer function model of Thermal System")
//------------------------------------------------------------------