summaryrefslogtreecommitdiff
path: root/1592/CH2/EX2.10/example_2_10.sce
blob: c947cc9a95970b19018cf3d68b704e68b02d5df1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Scilab Code for Example 2.10 of Signals and systems by
//P.Ramakrishna Rao
//The value of X(s) is found by solving the differential equation
clear;
clc;
syms t s;
s= %s;
X=pfss((s^2+8*s+6)/((s+2)*(s+3)*s));
X(1)=1/s;
f1=ilaplace(X(1))
f2=ilaplace(X(2))
f3=ilaplace(X(3))
fz=f1+f2+f3;
disp(fz*'u(t)',"c) x(t)=");