Write a matlab code for given task
Use your ‘sin’ or ‘cos’ function to generate a sinusoid wavehaving two components as
f1 = 3kHz and f2 = 5kHz and then sample it with fs = 10kHz.Calculate its fft with zero frequency
component in the middle. Plot it on a properly scaled w-axis.Specify if there is aliasing or not?
If there is aliasing specify which component is casing thealiasing