clc;clear all;close all;
Ts=1/1000
t=-1:Ts:1
No=length(t)
w=-pi:2*pi/No:pi-(2*pi/No)
f1=((20/pi).*(sinc(20*t/pi)).*(cos(300*t)))
f2=((10/pi).*((sinc(10*t/pi)).^2).*(cos(100*t)))
f=f1+f2
figure(1)
subplot(311)
plot(t,f)
xlabel('t')
ylabel('f(t)')
title('signal f(t)')
FF=fft(f);
FF=fftshift(FF);
FF=Ts*FF;
subplot(312)
plot(w,abs(FF),'m')
xlim([-0.4,0.4])
title('FFT based magnitude spectrum')
xlabel('omega(rad/s)')
ylabel('abs(FF)')
subplot(313)
plot(w,angle(FF)*180/pi,'g')
title('Phase spectrum')
xlim([-0.4,0.4])
xlabel('omega(rad/s)')
ylabel('Phase(FF)')
Exercises: u used to the instructor b the end of next lab. 20 102 Plot the f(t)-sinc(20r) cos(300...
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...
need problem 6.13 done. 12. The analog signal xa (t) = cos (100mt) + cos (120πt) led using natural sampling as shown in Fig. 6.18. The sampling rate used is f, -4 width of each pulse is τ = 0.5 ms. Write an analytical expression for the Fourier transform Xa (w) and sketch it. Find an analytical expression for X, () the Fourier transform of the naturally- sampled signal T, (t). a. c. Sketch the transform X, (w). 613. Repeat...
a) Use MATLAB to find the Fourier Transform F(w) of the following function f(t). b) Plot F(w). Express the x-axis in [Hz]. Plot for f = -8Hz to 8Hz. f(t) = cos(27 (34))e-**" 0.8 0.6 0.4 0.2 f(t) appears to oscillate at 3 cycles/sec 0 -0.2 -0.4 -0.6 0.8 -1 2 -1.5 -0.5 0 0.5 1 1.5 2
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...
A Digital Signal Processing system is taking at its input the following analogue signal s(t); s(t) - 20+ 20 cos(24xt)cos(xt), Where time t is expressed in ms. Part 1 - Setting the sampling frequency: (11 Marks) As a start, the system comprises only a sampler and an ideal analogue reconstructor as follows: w(t) s(t) Sampler Analogue Reconstructor s,(t) Figure a) Find the frequency spectrum S(t) of s(t) and deduce its bandwidth. You may directly use the table provided at the...
Lab #2 Discrete-time Fourier Transform (DTFT) OBJECTIVES: • Explore the DTFT, its meanings and concepts. • Get acquainted with Matlab/Octave 1) Start MATLAB and change the “Current Directory” in the top of the window (or type) >> cd '' (example: >> cd 'C:\NIU\lab2') Alternatively, if you don't want to use MATLAB, you can open a web-browser and go to “octave-online.net”. 2) Download and execute LAB2forStudent_A.M with >> lab2forStudent_A and observe that it produces a Discrete-Time (DT) signal xVec. 3) TO...
Using MATLAB, duplicate to the two graphs shown in the figure below Requirements 1. Show the MATLAB code used to plot both functions 5cos (nt-ng) (V) 5 e-"X cos (2nft-2nx/A) (V) a. y b- Use the frequency, wavelength and attenuation shown in the figure below when plotting graph (b) 2. 3. 4. Place labels for the x and y axis showing appropriate units Extend the x-axis to 10 cm and use a sampling rate of 0.1 mm Submit the final...