blob: e2f810ea0b1b23447420d9bcf4a6b5591dcce45b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Scilab Code for Example 7.24 of Signals and systems by
//P.Ramakrishna Rao
//Plotting the step response
clc;
clear;
syms z n;
y1=2*(1-0.5^n);
disp(y1*'u(n)','The step Response of the System is:');
for n=0:10;
q(n+1)=2*(1-0.5^n);
end
n=0:10;
plot(n,q);
title('Step Response g(n)');
xlabel('n-->');
|