The unit impulse, or the Dirac delta function, has zero values for all input values except a value of one at zero.
>> t = -10:10;
>> s = (t==0); %s is one only when t equals 0
>> stem(t,s)
Result:
For δ[n-2], the Matlab code is
>> t = -10:10;
>> s2 = (t==2); %s is one when t equals 2
>> stem(t,s2)
Result:
Reference:
DSP terms 數位訊號處理基本名詞 (StudyEECC)
Dirac Delta Function (Wikipedia)
沒有留言:
張貼留言