Documente Academic
Documente Profesional
Documente Cultură
2. Replace the last line with the syntax below and observe the output for each case:
(a)
(b)
(c)
Period of observation
0.05 s
Sampling frequency
fs : 8000
f0 : 523.23 Hz
Hz
The sine wave will be observed ever Ts (1/fs) seconds which we define as:
The generated signal is saved in to a file as you may see this appear in your folder. The
function sound allows you to hear what you have saved.
2. Copy the code you used above and similarly, generate a new waveform wave1 which
would have the following characteristics (use the same m-file).
Period of observation
0.05 s
Sampling frequency
fs1 : 800
f0 : 523.23 Hz
Time (t) - t1
Hz
= 0 : 1/(fs1/100) : end_time ;
(a) With reference to part 2.1 sections (a) notice the difference in sound as fs decreases.
(b) Plot the new wave generated in subplots (3,2,3) and (3,2,4) and observe the output.
Note: when plotting ensure that you use the new time array t1 and new waveform wave1.
3. Repeat the above procedure to generate a new waveform wave2 which would have the
following characteristics (use the same m-file).
Period of observation
0.05 s
Sampling frequency
fs2 : 80
f0 : 523.23 Hz
Time (t) - t2
Hz
= 0 : 1/(fs2/100) : end_time ;
(c) With reference to part 2.1 sections (a) notice the difference in sound as fs decreases.
(d) Plot the new wave generated in subplots (3, 2, 5) and (3, 2, 6) and observe the output.
3. Plot the waveform [Make plot and stem subplots respectively in (2,2,1) and stem in (2,2,2)].
Observe the output.
5. Subplot in (2,2,3) and (2,3,4) the waveforms of the reversed audio signal. Observe the
output.
6. Now, listen to the reversed audio signal and verify your observation from part 5. (Use your
knowledge from Part III section 3)