blob: e9a16362ab7d774030379120f90a817659ed61b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clear
clf
clc
n=-20:1:20;
for i=1:length(n)
x(i)=0.5;
end
subplot(2,1,1)
plot(n,x,".");
xtitle("x(n)=0.5 for all n","number of samples","amplitude");
xgrid(5)
y=0.5*x;
subplot(2,1,2)
plot(n,y,".");
xtitle("y(n)=0.5*x(n) for all n","number of samples","amplitude");
xgrid(5)
|