Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider data sampled at 1000Hz. Start by forming a time axis for the data runni

ID: 1847034 • Letter: C

Question

Consider data sampled at 1000Hz. Start by forming a time axis for the data running from

t=0 to t=0.25 seconds in steps of 1millisecond.

a. Form a signal containing sine waves at 30Hz and 140Hz.

b. Form a signal containing sine waves at 10Hz and 200Hz.

c. Form a signal containing sine waves at 50Hz and 600Hz.

d. Form a signal containing sine waves at 700Hz and 120Hz.


For each of the above 4 cases, plot the signals showing the time axis. Compute power

spectral density (power spectrum) for each of the four cases and plot them. Plot both the

two-sided and one-sided spectrum. Label axes. Comment on each of the 4 cases if you

observe aliasing or not. Validate your results computed in Matlab by doing hand

calculations for finding if there is any aliasing.


I'm working on this problem and


t = [0:0.001:0.25];

Fs = 1000;

F1 = 30;

F2 = 140;


I'm slightly lost after this one.

Explanation / Answer

clc;

close all;

f1=30;

f2=140;

t=0:0.00001:0.25;

signal=sin(2*pi*f1*t)+sin(2*pi*f2*t);

plot(signal)

psd_signal=spectrum(signal);

figure;

plot(psd_signal)

axis tight


NOTE: change f1 and f2 for every problem

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote