blob: 0819482cb8f2be6d093d9b785af831c3d57c3fee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//Caption:time_response_for_unit_impulse_and_step_function
//example 6.10.2
//page 171
//G(s)=(4*s+1)/4*(s^2);H(s)=1;
clc;
s=%s;
syms t;
G=(4*s+1)/(4*(s^2))//G(s)
b=1;
a=G/.(b);
disp(a,"C(s)/R(s)=");
//for unit impulse response R(s)=1 ; so C(s)=a;
disp("for unit impulse response R(s)=1 ; so C(s)=a;")
disp(a,"C(s)=");
c=ilaplace(a,s,t);
disp(c,"c(t)=");
//for unit step response R(s)=1/s
disp('for unit step response R(s)=1/s, so');
d=a*(1/s);
disp(d,"C(s)=");
e=ilaplace(d,s,t);
disp(e,"c(t)=");
|