Question 2
f = 250:250:2000
Fs = 16000; % Sampling frequency
t = 0:1/Fs:0.005; % Time vector of 1 second
amp = 1;
x = amp * sin(2*pi*t'*f);
plot(t,x)
title('Two sinusoidal waveforms in quadrature');
xlabel('Time in seconds');
ylabel('Sinusoidal waveform');
grid on
hold on
y = amp * cos(2*pi*t'*f);
plot (t,y)
hold off
Question2code
f =
250 500 750 1000 1250 1500 1750 2000
Get Project Help