Hi, I have a Matlab problem and I need help.
Write a MATLAB function which outputs L samples from a sinusoid of frequency f sampled at Fs. Generate 3 plots showing the generated samples for Fs = 48kHz, L = 100, and f = 2.3kHz, f = 23kHz, and f = 36kHz. Use the subplot() command to place all 3 plots in the same figure window. Label the horizontal and vertical axes of all plots and give titles for each plot with the value of f.
Attachment 1
Attachment 2
Task 1 (20%). Write a MATIAB fiinction which outputs L samples fivm a sinusoid of frequency f sampledat F5. Generate 3 plots showing the generated samples for F5 = 48th, L = 100, and f = 2.3th,f = 23th, and f = 36th. Use the subplotU command to place all 3 plots in the same figure window.Label the horizontal and vertical axes of all plots and give titles for each plot with the value of f. Task 2 (20%). Use MATLAB’s fifl) function to find the length 64 Fast Fourier Transform of the signalsgenerated in Task l. Generate a figure with 3 plots corresponding to the magnitude of the FFT of eachsignal from Task 1. Plot the first half of the FFY; with the horizontal axis scaled to be in units of radians.label the axes for each subplot and give titles for each figure to denote f.