Question

3. For this problem, we consider a signal made of the sum of three simultaneously present sinusoids (t) sin(2m fit) sin(2f2t

0 0
Add a comment Improve this question Transcribed image text
Answer #1

solution:

Execute main.m 1 clc 2 clear 3 close all 4 7 -E(t) sin (2*pi*f1*t) sin(2*pi*f2*t) sin(2*pi*f3*t); s + + 9 %time range 0-3000s37 Frequency fT, at Twice of Nyquist frequency is given by 38 fT-2 fn -2*1122Hz 39 40 Frequency fH, at Half of Nyquist freque70 oversampling and undersampling 71 ST - Over-sampling 72 SH - Under-sampling | 73 % 74 75 % 76 sampling a signal below theoutput screen shot:

3000 2500 2000 1500 -3 1000 500time [s] 1 * 1000 200 400 600 8001 * 1000 200 400 600 800*FY 8 1 200 400 800 10000 .2 -3 400 200 600 800 10001000 200 400 600 80001 이。 0 .2 -3 400 600 200 800 1000sample program:

clc
clear
close all

f1 = 3; f2 = 7; f3 = 11; %Hz

s = @(t) sin(2*pi*f1*t) + sin(2*pi*f2*t) + sin(2*pi*f3*t);

%time range 0-3000s and 3000 graph points
t = linspace(0,3000,1000);

%(a)
figure
plot(t,s(t))
xlabel('time [s]')
ylabel('amplitude')
title('s(t) = sin(2*pi*3*t) + sin(2*pi*7*t) + sin(2*pi*11*t)')

%(b)
%{
Nyquist says sampling frequency fs of a signal should be greater or equal to twice the highest frequency
component in the sampled signal. (in this case fs > = 2*f3) if the original
signal is to be recovered from the sampled signal

Therefore, the lowest(minimum) sampling frequency fs = 2*f3 = 2*11 = 22Hz

%}


%(c)
%{

from (b), sampling frequency fs = 22Hz
Nyquist frequency fn = half of sampling frequency = (1/2)*fs = (1/2)*22 = 11Hz


Frequency fT, at Twice of Nyquist frequency is given by
fT = 2*fn =2*11 = 22Hz

Frequency fH, at Half of Nyquist frequency is given by
fH = (1/2)*fn =(1/2)*11 = 5.5Hz

%}

fT = 22; fH = 5.5; %Hz


A = 1;
%A = 1;

sT = @(t) A*sin(2*pi*fT*t);
sH = @(t) A*sin(2*pi*fH*t);

%using a sammler scale of 100points and shorter time range 0-1000 for better visual
t = linspace(0,1000,100);

figure
plot(t,s(t))
hold on
plot(t,sT(t),'o r')
hold on
plot(t,sH(t),'o g')
legend('s','sT','sH')
xlabel('time [s]')
ylabel('amplitude')
title(['amplitude of sT and sH is ' num2str(A)])


%{
oversampling and undersampling
sT - Over-sampling
sH - Under-sampling
%}

%{
sampling a signal below the nyquist frequency causes aliasing where
higher frequency components masquerade as though they are lower frequency components
which causes distortion and makes it impossible to re-construct/recover the original signal from the
sampled signal
%}

sample output:s(t) sin(2*pi*3*t) sin(2*pi*7*t) sin (2*pi* 11*t) 3 0 -2 1500 2500 500 1000 2000 3000 time [s]

amplitude of sT and sH is 1 3 O ST O SH 0 -2 0 100 200 300 400 500 600 700 800 900 1000 time [s]amplitude of sT and sH is 3 O ST 0 -3 0 100 200 300 400 500 600 700 800 900 1000 time [s]

Add a comment
Know the answer?
Add Answer to:
3. For this problem, we consider a signal made of the sum of three simultaneously present sinusoi...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Ints) A continuous time signal is given below: x(t) = 10 + 3 sin (20t + 3) + 5 cos(40π) This is s...

    ints) A continuous time signal is given below: x(t) = 10 + 3 sin (20t + 3) + 5 cos(40π) This is sampled at t = 0.01 n to get a the discrete-time signal x[n], which is then applied to an ideal DAC to obtain a reconstructed continuous time signal y(t). a. i. Determine x[n] and graph its samples, using Matlab, along with the signal x(t) in one plot, plot a few cycles of x(t). ii. Determine the reconstructed signal,...

  • PROBLEM 2 150 pts.] A signal is consist of three sine functions: the first one, ,...

    PROBLEM 2 150 pts.] A signal is consist of three sine functions: the first one, , has a wave frequency of 50 Hz, the second one, 2, has 100 Hz, and the last one, r3, has 200 Hz. However, each function has different amplitude: the amplitude of the first signal component x! is 10 cm, the amplitude of the second signal component xi s 5 cm; and the amplitude of the last signal component t3 is 1 cm. As a...

  • 10. Find the Fourier transform of a continuous-time signal x(t) = 10e Su(t). Plot the magnitude...

    10. Find the Fourier transform of a continuous-time signal x(t) = 10e Su(t). Plot the magnitude spectrum and the phase spectrum. If the signal is going to be sampled, what should be the minimum sampling frequency so that the aliasing error is less than 0.1 % of the maximum original magnitude at half the sampling frequency. 11. A signal x(t) = 5cos(2nt + 1/6) is sampled at every 0.2 seconds. Find the sequence obtained over the interval 0 st 3...

  • 5.1-7 Consider a bandlimited signal g1(C) whose Fourier transform is (a) If g1(t) is uniformly sa...

    5.1-7 Consider a bandlimited signal g1(C) whose Fourier transform is (a) If g1(t) is uniformly sampled at the rate of fs400 Hz, show the resulting spectrum of the ideally sampled signal. (b) If we attempt to reconstruct gi (t) from the samples in Part (a), what will be the recovered analog signal in both time and frequency domains? (c) Determine another analog signal G2(f) in frequency domain such that its samples at = 400 Hz will lead to the same...

  • please, provide answer along with its matlab code. 10. Consider the continuous- time signal kite a1ua(-t) + kze-a2t...

    please, provide answer along with its matlab code. 10. Consider the continuous- time signal kite a1ua(-t) + kze-a2t cos (2mfi t) ua (t), Ta(t) where ki =-400, k2 2, a1 = -57.5364, a2 21.0721, and fi=300 Hz. (a) Plot ra(t). Identify the non-causal part of Ta (t) as Tal(t) and the causal part as Ta2(t). (b) Assuming that aa(t) is sampled using the sampling frequency fsamp 200 Hz, determine the discrete-time counter-parts corresponding to aal (t) and ra2(t), named a1(n)...

  • 3 Sampling and aliasing The aim of this part is to demonstrate the effects of aliasing...

    3 Sampling and aliasing The aim of this part is to demonstrate the effects of aliasing arising from improper sampling. A given analog signal z(t) is sampled at a rate fs = 1/T, the resulting samples (nT) are then reconstructed by an ideal reconstructor into the analog signal rat). Improper choice of f, will result in different signals ra(t) + (t), even though they agree at their sample values, that is, tanT) = x(nT). The procedure is illustrated by the...

  • 3. (a) Consider the signal xc(t)-sin(2π(40)t). How fast must xe(t) be sanpled to avoid aliasing? ...

    3. (a) Consider the signal xc(t)-sin(2π(40)t). How fast must xe(t) be sanpled to avoid aliasing? Determine the Nyquist rate (the frequency which the sampling rate fs must exceed) for ae(t) (b) Consider processing the signal xe(t) (from part (a)) using the system shown below: Conversion to a sequence Conversion to an impulse train Ideal Reconstruction Filter Hr(ju) p (t) ур y(t) The sampling period for this system is T-1/50 seconds. The DT system H(ei2) is an ideal lowpass filter with...

  • THTCos (200Tt) -oo<t< oo. We want to convert = {0,1,2,...} Problem 1. Suppose we have a continuous-time signal r(...

    THTCos (200Tt) -oo<t< oo. We want to convert = {0,1,2,...} Problem 1. Suppose we have a continuous-time signal r(t) (t) into a discrete-time signal yn] where we sample the signal every t= nT, seconds for n a. Determine the frequency fo of the cosine in Hertz and its corresponding period (T = 1/fo). b. Plot the continuous signal rt) for t = [0,4T] seconds so that four periods of the signal are plot command) plotted (use the (0, 1, 2,...

  • Problem 1: (3 +2+3+2 10, sampling) Consider the continuous-time signal x(t) = 3 + cos(10?1+ 5)...

    Problem 1: (3 +2+3+2 10, sampling) Consider the continuous-time signal x(t) = 3 + cos(10?1+ 5) + sin(15?), t E R (a) Find the Fourier transform X-Fr. Hint: (F ejuot) (w) 2??(w-wo) (b) What is the Nyquist Frequency wn in radians/s of x? (c) Write an expression for the Fourier transform of the ideal sampling of x with sam- pling period T, = 2n/Cav.), i.e., ?00_ox(AZ)6(t-kZ) Hint: (F eiru>tz(t) (w) - X(w - rus) and recall Poisson's identity, CO eyru'st,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT