close all,
clear all,
clc,
Fs = 100;
t=0:(1/Fs):1;
x = 1 + sin(0.125 * pi * t) + 0.5*sin(0.25 * pi * t) +
0.25*sin(0.5 * pi * t) + 0.125*sin(pi * t);
subplot(4,1,1); plot(x); title('Original Signal, x = 1 + sin(0.125
* pi * t) + 0.5*sin(0.25 * pi * t) + 0.25*sin(0.5 * pi * t) +
0.125*sin(pi * t)');
grid on, ylim([-3,3]);
Order=2;
Fc = 5; Wn = Fc/(Fs/2);
b = fir1(Order,Wn,'low'); hd = dfilt.dffir(b);
y = filter(hd,x);
subplot(4,1,2); plot(y); grid on, ylim([-3,3]);
str = strcat('Filtered InputSignal, Fc = 5Hz'); title(str);
Fc = 0.5; Wn = Fc/(Fs/2);
b = fir1(Order,Wn,'low'); hd = dfilt.dffir(b);
y = filter(hd,x);
subplot(4,1,3); plot(y); grid on, ylim([-3,3]);
str = strcat('Filtered InputSignal, Fc = 0.5Hz'); title(str);
Fc = 0.05; Wn = Fc/(Fs/2);
b = fir1(Order,Wn,'low'); hd = dfilt.dffir(b);
y = filter(hd,x);
subplot(4,1,4); plot(y); grid on, ylim([-3,3]);
str = strcat('Filtered InputSignal, Fc = 0.05Hz'); title(str);

) (MATLAB) Assume a sampling rate of 100 Hz. Filter the signal given by x(t) = 1 + sin(0.125zt) + 0.5 sin(0.25mt) + 0.25 sin(0.5zt) + 0.125 sin(nt) by filters of progressively lower cutoff frequen...
36. Sampling a low-pass signal. A signal x(t) = sin( 1,000.71) is sampled at the rate of F, and sent through a unity-gain ideal low-pass filter with the cutoff frequency at F,/2. Find and plot the Fourier transform of the reconstructed signal z(t) at filter's output if a. F=20 kHz b. Fs =800 Hz
Q1) Given an analog signal X(t) = 3 cos (2π . 2000t) + 2 cos (2π . 5500t) sampled at a rate of 10,000 Hz, a. Sketch the spectrum of the sampled signal up to 20 kHz; b. Sketch the recovered analog signal spectrum if an ideal lowpass filter with a cutoff frequency of 4 kHz is used to filter the sampled signal in order to recover the original signal ; c. Determine the frequency/frequencies of aliasing noise . Q2)...
1- The signal x(t) is applied to a low pass filter with cutoff frequency equal to 1; write a MATLAB code to find and plot X(f), H(f) and the output of the filter Y(f), where x(t) is given below: x(t) -0.5 0.5 2- Apply the signal x(t) in the previous example to a HPF, BPF and BSF and draw the output signal Y(f). 3- Find and Plot the transfer function of BSF.
3. (50 points] Consider the signal (t= cos(27 (100)+]: 1) Let's take samples of x(t) at a sampling rate fs = 180 Hz. Sketch the spectrum X (f) of the sampled signal x (t). Properly label x-axis and y-axis. 2) Now suppose we will use an ideal lowpass filter of gain 1/fs with a cutoff frequency 90 Hz for the sampled signal xs(t). What is the output of the filter x,(t)? 3) Now let's take samples of x(t) at sampling...
Styles Paragraph 6. Given the difference equation y(n)-x(n-1)-0.75y(n-1)-0.125(n-2) a. Use MATLAB function filterl) and filticl) to calculate the system response y(n)for n 0, 1, 2, 3, 4 with the input of x(n (0.5) u(n)and initial conditions x(-1)--1, y(-2) -2, and y(-1)-1 b. Use MATLAB function filter!) to calculate the system response y(n) for n-0, 1, 2, 3,4 with the input of x(n) (0.5)"u(n)and zero initial conditions x(-1)-0, (-2)-0, and y(-1)-0 Design a 5-tap FIR low pass filter with a cutoff...
(a) Given the following periodic signal a(t) a(t) -0.5 -0.25 0 0.25 0.5 0.75 1 1.25 1.5 i. [2%) Determine the fundamental period T ii. [5%] Derive the Fourier series coefficients of x(t). iii. [396] Calculate the total average power of z(t). iv. [5%] If z(t) is passed through a low-pass filter and the power loss of the output signal should be optimized to be less than 5%, what should be the requirement of cutoff frequency of the low-pass filter?...
Question 1: (Sampling and Aliasing Effeet) (25 Marks) The given analog signal x(t)--sin(16xt)+ sin(11xt)+ sin (5nt), where t is in milliseconds, is sampled at a rate of 12kHz. The resulting samples are immediately reconstructed by an ideal reconstructor. a. Find and sketch the spectrum of x(t) versus Ω. b. Find and sketch the spectrum of the sampled signal versus o. c. Determine the analog signal x (t) at the output of the reconstructor. d. Prove the x(0) and x(t) having...
MATLAB Assignment #4 Due date: Monday May 7, 2018 Exercise (Sampling): Consider the CT signals (t) a) (2 Points) Derive an analytical expression for the Fourier transform X(jw). Note that since a(t) is real and even, so is X(jw). Plot X(jw) for we [-100,100. Is a(t) band limited? b) (4 Points) Applying an idea low-pass filter with cutoff frequency wM to(), the output can be computed as: Write a MATLAB program to numerically evaluate the above integral. In the same...
1. Given a signal xa(t) bandlimited to 50KHz. Design a digital low pass filter that can filter frequencies 1 above 12c = 2725000rad/s. Assume sampling period of T = s. 2 x 105
Using the windowing functions discussed in class, design a
low-pass FIR filter with a cutoff frequency of 2 kHz, a minimum
stop band attenuation of 40 dB, and a transition width of 200Hz.
The sampling frequency is 10kHz.
1. Using the windowing functions discussed in class, design a low-pass FIR filter with a cutoff frequency of 2 kHz, a minimum stop band attenuation of 40 dB, and a transition width of 200 Hz. The sampling frequency is 10 kHz 2....