MattieT/mlteht/mlIntTrans

Contents

mlIT001R

Ratkaisu

(a-b)

(a)

 close all
 N=7; % tms.
 delta=[zeros(1,N),1,zeros(1,N)];
 x=-N:N;
 plot(x,delta,'.')
 ylim([-.2,1.2])
 grid on
 shg
 % (b)
 figure
 stem(x,delta)
 ylim([-.2,1.2])
 grid on
 shg

(c)

N=7;
delta1=zeros(1,2*N+1);
delta1(N+1)=1;
delta==delta1
all(ans)
ans =

  Columns 1 through 13

     1     1     1     1     1     1     1     1     1     1     1     1     1

  Columns 14 through 15

     1     1


ans =

     1