Can you please help me answer Task 2.b?
Please show all work.
fs=44100; no_pts=8192;
t=([0:no_pts-1]')/fs;
y1=sin(2*pi*1000*t);
figure;
plot(t,y1);
xlabel('t (second)')
ylabel('y(t)')
axis([0,.004,-1.2,1.2]) % constrain axis so you can actually see
the wave
sound(y1,fs); % play sound using windows driver.
%%
% Check the frequency domain signal. fr is the frequency vector and
f1 is the magnitude of F{y1}.
fr=([0:no_pts-1]')/no_pts*fs; %in Hz
fr=fr(1:no_pts/2); % single-sided spectrum
f1=abs(fft(y1)); % compute fft
f1=f1(1:no_pts/2)/fs;
%%
% F is the continuous time Fourier. (See derivation notes.) Notice
the small
% amount of aliasing due to the fact that the truncated sinusoid is
not bandlimited.
frp=fr*2*pi;tmax=max(t);
F1=1/1i*sin((frp-1000*2*pi)*tmax/2).*exp(-1i*(frp-1000*2*pi)*tmax/2)./(frp-1000*2*pi);
% li = i, the imaginary partsymbol
F2=1/1i*sin((frp+1000*2*pi)*tmax/2).*exp(-1i*(frp+1000*2*pi)*tmax/2)./(frp+1000*2*pi);
F=abs(F1-F2); % magnitude
figure;
plot(fr, F, fr, f1) % compare the continuous time Fourier with FFT,
linear scale
axis([0,1500,0,0.09]) % constrain axis so you can actually see the
pulse
xlabel('f (Hz)')
ylabel('|Y(f)|')
legend('Continuous-time FT', 'FFT')
figure;
loglog(fr,F,fr,f1); % compare the continuous time Fourier with FFT,
log-log scale
xlabel('f (Hz)')
ylabel('|Y(f)|')
legend('Continuous-time FT', 'FFT')
Part-b
In continuous time fourier transform i.e. CTFT, the signal time period is extended to infinity in order to make the frequency resolution very very small. This brings the harmonics very close to each other and the spectrum become continuous. However, the CTFT of a periodic signal having a defined period, the CTFT is discrete as like that to the FFT.
Therefore, in present case, the signal is of 1KHz i.e. have a well defined time period of 1 msec, therefore, we see an overlaping FT and CTFT plot.
Can you please help me answer Task 2.b? Please show all work. fs=44100; no_pts=8192; t=([0:no_pts-1]')/fs; y1=sin(2...
Amplitude=3; fs=8000; n=0:399; t=0:1/fs: n*1/fs-1/fs; signal=3+3*cos(2*pi*1100*t)+3*cos(2*pi*2200*t)+3*cos(2*pi*3300*t); fftSignal= fft(signal); fftSignal=f ftshift (fftSignal); f=fs/2*linspace(-1,1,fs); plot(f,abs(fftsignal); xlabel('Frequency(Hz)’) ylabel('amplitude(v)') title('Spectral domain') plz code above using For ..End loop to archive the same results.
Please finish these questions. Thank you
Given find the Fourier transform of the following: (a) e dt 2T(2 1) 4 cos (2t) (Using properties of Fourier Transform to find) a) Suppose a signal m(t) is given by m()-1+sin(2 fm) where fm-10 Hz. Sketch the signal m(t) in time domain b) Find the Fourier transform M(jo) of m(t) and sketch the magnitude of M(jo) c) If m(t) is amplitude modulated with a carrier signal by x(t)-m(t)cos(27r f,1) (where fe-1000 Hz), sketch...
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,...
Program from problem 1: (Using MATLAB)
% Sampling frequency and sampling period
fs = 10000;
ts = 1/fs;
% Number of samples, assume 1000 samples
l = 1000;
t = 0:1:l-1;
t = t.*ts; % Convert the sample index into time for generation and
plotting of signal
% Frequency and amplitude of the sensor
f1 = 110;
a1 = 1.0;
% Frequency and amplitude of the power grid noise
f2 = 60;
a2 = 0.7;
% Generating the sinusoidal waves...
What is the Fourier transform of:
Your answer should be expressed as a function of w
using the correct syntax.
Fourier transform is F(w) =
16 / (t)-sin(18t)? Question 2 (1 mark) Attempt 1 What is the Fourier transform of: f(t)-5-isin(18t)? 3Tt Your answer should be expressed as a function of w using the correct syntax. Fourier transform is F(w) = skipped
16 / (t)-sin(18t)?
Question 2 (1 mark) Attempt 1 What is the Fourier transform of: f(t)-5-isin(18t)? 3Tt Your...
please code on MATHLAB and show graph thank you in advance!
Generate the following function y1(t)=2* sin (2*pi* 1 *t)+4*sin(2*pi*2*t)+3*sin(2*pi*4*t) y2(t)=2*cos(2*pi*1*t)+4*cos(2*pi*2*t)+3*cos(2*pi*4*t) First, required by sampling theorem, the step size of t (delta t) has to be smaller than a value. Figure out this value and set the delta t at least 3 times smaller than this value and calculated y1(t) and y2(t). Increase the step size (delta t) and recalculate y1(t) and y2(t). See the difference. Calculate Fourier Transform of...
I got help with task 1 and 2 . can you help me with task 3 and 4
of this question. please help me step for step thanks.
A signal x[n] modulated by multiplying it by a carrier wave cos(2*p1"/cm) to form the signal z[n] = cos(2"p1"Vcm)x[n] ·The modulated signal z[n] multiplies with the same carrier wave to give the signal y[n]=cos(2*pi"Vcm)z[n] and filters with an LT-system to give x-hat [n] . all this are described by the picture below...
Create a file named “toneA.m” with the following MATLAB code: clear all Fs=5000; Ts=1/Fs; t=[0:Ts:0.4]; F_A=440; %Frequency of note A is 440 Hz A=sin(2*pi*F_A*t); sound(A,Fs); Type toneA at the command line and then answer the following: (a) What is the time duration of A? (b) How many elements are there in A? (c) Modify toneA.m by changing “Fs=5000” to “Fs=10000”. Can you hear any difference? (d) Create a file named “tone.m” with the following MATLAB code: function x = tone(frequency,...
Pleaase answer all parts with neat and precise work. show all
steps. Please
24. The following Fourier pair for the Lorentzian/Cauchy pulse was discussed in class: f(t)-_a (21) where a > 0 is a measure of the width of the time signal. The domains of f (t) and F(w) are -oo < t < oo and-oo <ω<00, respectively. (a) Showing all work, determine the time signal g (t) that has the following Fourier transform, where to is a given constant:...
You are given a finite step function xt=-1 0<t<4 1 4<t<8. Hand calculate the FS coefficients of x(t) by assuming half- range expansion, for each case below. Modify the code below to approximate x(t) by cosine series only (This is even-half range expansion). Modify the below code and plot the approximation showing its steps changing by included number of FS terms in the approximation. Modify the code below to approximate x(t) by sine series only (This is odd-half range expansion).. Modify...