summaryrefslogtreecommitdiff
path: root/1340/CH2/EX2.5/2_5.sce
blob: 105338668c08a3756a29f4933b56f6e8f2b98cc2 (plain)
1
2
3
4
5
6
7
8
9
10
clc;
s=%s;
G = syslin('c',1/(s+2));
disp(G,"G(s)=");
disp("input is a step function:");
R = laplace(1,t,s);// for unit step function
C = G*R;
syms t s;
c = ilaplace(C,s,t);
disp(c,"c(t)=");