Professional Documents
Culture Documents
Pengolahan Sinyal Digital
Pengolahan Sinyal Digital
ans =
'07-Sep-2019'
>> n=[-2,-1,0,1,2,3];
>> x=[-1,0,1,-2,3,1];
>> xe=[1,-1,1,-1,1,0.5];
>> x0=[-2,1,0,-1,2,0.5];
>> subplot(3,1,1);stem(n,x,'r','linewidth',2.0)
>> subplot(3,1,2);stem(n,xe,'g','linewidth',2.0)
>> subplot(3,1,3);stem(n,xo,'b','linewidth',2.0)
>>
>> date
ans =
'07-Sep-2019'
>> n=[-3,-2,-1,0,1,2,3]
n=
-3 -2 -1 0 1 2 3
>> n(1,7)
ans =
>> x=[1,0,0,1,1,0,0]
x=
1 0 0 1 1 0 0
>> stem(n,x,'r','linewidth',2.0)
>>
>> n=[-3,-2,-1,0,1,2,3];
>> x=[1,0,0,1,1,0,0];
>> xe=[0.5,0,2,1,0.5,0,0.5];
>> xo=[0.5,0,0.5,0,0.5,0,0.5];
>> subplot(3,1,1);stem(n,,x,'b','linewidth',2.0)
subplot(3,1,1);stem(n,,x,'b','linewidth',2.0)
unbalanced (, {, or [.
>> subplot(3,1,1);stem(n,x,'b','linewidth',2.0)
>> subplot(3,1,2);stem(n,xe,'c','linewidth',2.0)
>> subplot(3,1,3);stem(n,xo,'d','linewidth',2.0)
NIM
>> date
ans =
'07-Sep-2019'
>> n=[-4,-3,-2,-1,0,1,2,3,4,5]
n=
Columns 1 through 9
-4 -3 -2 -1 0 1 2 3 4
Column 10
>> x=[-1,7,-3,1,-1,3,0,-1,1,-7];
>> stem(n,x,'r','linewidth',2.0)
>>
>> n=[-4,-3,-2,-1,0,1,2,3,4,5];
>> x=[-1,7,-3,1,-1,3,0,-1,1,-7];
>> xe=[0.5,3,-1.5,2,-1,2,-1.5,3,0.5,-3.5];
>> xo=[-1,4,-1.5,-1,0.5,1,1.5,-4,1,-3.5];
>> subplot(3,1,1);stem(n,x,'r','linewidth',2.0)
>> subplot(3,1,2);stem(n,xe,'b','linewidth',2.0)
>> subplot(3,1,3);stem(n,xo,'g','linewidth',2.0)
>>