What is the output of the following code? [code]>> p=dirac(0)==Inf; >> t=(0:.001:17); >> q=p*1; >> conv(q,sin(2*pi*t)); >> plot(t,ans)[/code]

What is the output of the following code?
Code:
>> p=dirac(0)==Inf;
>> t=(0:.001:17);
>> q=p*1;
>> conv(q,sin(2*pi*t));
>> plot(t,ans)
A. A sinusoid of a frequency 1Hz
B. A sinusoid of a frequency of 17 Hz
C. A sinusoid of a frequency of .001 Hz
D. Error
 
Answer: a
Explanation: We’re only computing the impulse response of a system which behaves as a sinusoid on the input. The frequency of the system is 1 Hz as seen from the description. The output, shown below, contains 17 cycles.
Output:
 

Tìm kiếm

Back
Top