summaryrefslogtreecommitdiff
path: root/104/CH3/EX3.10/3_10.sce
blob: 20d533b7554f19587ccab34e598982eabfa642cc (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
25
26
27
28
29
//applying gain formula to state diagram 3-22
//r(t),x1(t) and x2(t) are input nodes
//y(t) is output node
//superposition principle holds good

syms s r x1 x2
//r(t) as input node and y(t) as output node
M1=0
delta1=1
delta=1
a=(M1*delta1)/delta
y1=a*r
disp(y1,"y1(t)=")

//x1(t) as input node and y(t) as output node
M1=1
delta1=1
b=(M1*delta1)/delta
y2=b*x1
disp(y2,"y2(t)=")

//x2(t) as input node and y(t) as output node
M1=0
delta1=1
c=(M1*delta1)/delta
y3=c*x2
disp(y3,"y3(t)=")

disp(y1+y2+y3,"y(t)=")