Question

In: Electrical Engineering

question 4. For each of the f0 frequencies in Problem 3(c), construct a sinusoidal signal that...

question 4. For each of the f0 frequencies in Problem 3(c), construct a sinusoidal signal that is turned on at t = 0 and sampled at 100,000/ 2? Hz over the interval ?0.5 ? t ? 0.5 . Again, using Matlab’s convolution command, determine the amplitude and phase (relative to the input) of the response of the filter. Ignoring edges of output that are subject to numerical artifacts. Compare and contrast your answers to those obtained in Problem 3(c).

previous question #3

3. Suppose the transfer function of a low-pass filter with frequency specified in cyclic frequency f is given by H ( f ) = 100/ (100 +i2? f ):

a. Manually find and sketch the amplitude and phase spectra (on regular, non-log scale) of the transfer function.

b. If the input to the filter is x(t) = Acos (2? f0t), derive the general expression of the output. (Hint: use Fourier convolution theorem.)

c. Find the specific expressions for the outputs for f0 = 10/ 2? , 100/ 2? , 1,000/ 2? , and 10,000/ 2? Hz. (You may use a calculator or Matlab for the computation.)

Solutions

Expert Solution

matlab code:

clc;
close all;
clear all;
fs=(2*100000)/(2*pi);
Ts=1/fs;
t=Ts:Ts:0.5;
A=1;
h=100*exp(-100*t);


%f0=10/(2*pi)
x1=A*cos(10*t);
y1=conv(x1,h);
y1f=fft(y1);
y1mag=abs(y1f);
y1phase=angle(y1f);
figure;
plot(y1mag);
title('problem 3 magnitude response for f0=10');
ylabel('amplitude')
xlabel('frequency');
figure;
title('problem 3 magnitude response for f0=10');
plot(y1phase);
ylabel('phase')
xlabel('frequency');

%f0=100/(2*pi)
x2=A*cos(100*t);
y2=conv(x2,h);
y2f=fft(y2);
y2mag=abs(y2f);
y2phase=angle(y2f);
figure;
plot(y2mag);
title('problem 3 magnitude response for f0=100');
ylabel('amplitude')
xlabel('frequency');
figure;
plot(y2phase);
title('problem 3 phase response for f0=100');
ylabel('phase')
xlabel('frequency');

%f0=1000/(2*pi)
x3=A*cos(1000*t);
y3=conv(x3,h);
y3f=fft(y3);
y3mag=abs(y3f);
y3phase=angle(y3f);
figure;
plot(y3mag);
title('problem 3 magnitude response for f0=1000');
ylabel('amplitude')
xlabel('frequency');
figure;
plot(y3phase);
title('problem 3 phase response for f0=1000');
ylabel('phase')
xlabel('frequency');

%f0=10000/(2*pi)
x4=A*cos(10000*t);
y4=conv(x1,h);
y4f=fft(y4);
y4mag=abs(y4f);
y4phase=angle(y4f);
figure;
plot(y4mag);
title('problem 3 magnitude response for f0=10000');
ylabel('amplitude')
xlabel('frequency');
figure;
plot(y4phase);
title('problem 3 phase response for f0=10000');
ylabel('phase')
xlabel('frequency');

%problem 4
%f0=100000/(2*pi)
x5=A*cos(100000*t);
y5=conv(x5,h);
y5f=fft(y5);
y5mag=abs(y5f);
y5phase=angle(y5f);
figure;
plot(y5mag);
title('problem 4 magnitude response')
ylabel('amplitude')
xlabel('frequency');
figure;
plot(y5phase);
title('problem 4 phase response')
ylabel('phase')
xlabel('frequency');

results;


Related Solutions

Question 6) a) What is the RMS value of an AC signal? In case of sinusoidal...
Question 6) a) What is the RMS value of an AC signal? In case of sinusoidal signals which relationship exists between RMS and maximum values? [5 marks] b) Why AC quantities cannot be added arithmetically as in DC? [5 marks] Question 7) Given the following A.C. voltage, v(t) = 80 sin (942t – π/6), state: (a) angular frequency [3 marks] (b) Period [3 marks] (c) phase difference [4 marks] Question 2) Using diagrams, state at least three (3) characteristics of...
Matlab Code that does the following: Takes as input 3 frequencies. Create a signal that is...
Matlab Code that does the following: Takes as input 3 frequencies. Create a signal that is a mixture of the 3 signals. Create a bandpass filter that only selects the center frequency. Output the filtered signal which contains only the middle frequency. Plot in time and frequency domain the original signal and the filtered signal. Show the output for filter order 1 and 15. Upload a pdf of the image files. Each figure should have your name in the title...
Chapter 4 Problem 11 Problem 15, part f. in Chapter 3 asks you to construct a...
Chapter 4 Problem 11 Problem 15, part f. in Chapter 3 asks you to construct a five year financial projection for Aquatic Supplies beginning in 2015. The five year projection appears below. a. Calculate Aquatic Supplies's sustainable and actual growth rates in these years.   b. What do these numbers suggest to you? Aquatic Supplies Co. Five Year Projected Income Statements and Balance Sheets Income Statement (in $ millions) Pro Forma Forecasts 2015 - 2019 2014 Assumptions 2015 2016 2017 2018...
Problem 3: The carrier c(t) = 100cos(2p fct) is frequency modulated by the signal m(t) =...
Problem 3: The carrier c(t) = 100cos(2p fct) is frequency modulated by the signal m(t) = 5cos(20000pt) , where fc = 108 Hz. The peak frequency deviation is 20 kHz. Determine the amplitude and frequency of all the signal components that have a power level of at least 10% of the power of the un-modulated carrier component. Hint: The wide-band FM has frequency components, fc, fc+ fm, fc? fm, fc+2 fm, fc?2 fm, and so on. The amplitude of the...
This question is in C++ Problem 3 Write a templated C++ class to represent an itinerary....
This question is in C++ Problem 3 Write a templated C++ class to represent an itinerary. An itinerary has a title, a source position and a destination position. In addition, it may include intermediate positions. All positions have the same abstract type T. The real type can be decided later, for example it can be a cartesian point with x,y,z coordinates, or an airport code, or a city name, or a country name, etc .. The itinerary includes a vector...
Find the autocorrelation sequence for discrete signal c[n]=[=0.8,1.6,0,2.4,-4]. 0 is the origin. Graph each step and...
Find the autocorrelation sequence for discrete signal c[n]=[=0.8,1.6,0,2.4,-4]. 0 is the origin. Graph each step and the sequence. Write the sequence also.
In MATLAB; 3- Plot a 8V-2KHZ Sine signal in MATLAB. While this signal varies between C...
In MATLAB; 3- Plot a 8V-2KHZ Sine signal in MATLAB. While this signal varies between C = 10uF-100uF in 1uF steps for your application to the serialRLC circuit, calculate the L values ​​for R = 50 Ohm (constant) that can pass the maximum current through the circuit and write to the file. Plot the change graph of the L value calculated according to each C value.
3) [4] Below are the observed and expected (in parentheses) frequencies for athletic injuries for those...
3) [4] Below are the observed and expected (in parentheses) frequencies for athletic injuries for those athletes who properly stretched versus those who did not. Assuming a ? 2 Test for Independence test is being conducted, at ? = 0.05, are athletic injuries independent of stretching? Only list steps 3-7 of the hypothesis test. Stretched Not stretched Totals Injury 18 (20.8) 22 (19.2) 40 No Injury 211 (208.2) 189 (191.8) 400 Totals 229 211 440
Problem 3-33 (LO. 3, 4) Determine the number of personal and dependency exemptions in each of...
Problem 3-33 (LO. 3, 4) Determine the number of personal and dependency exemptions in each of the following independent situations. For example: 0, 1, 2, 3, and so on. Personal Exemptions Dependency Exemptions a. Leo and Amanda (ages 48 and 46, respectively) are married and furnish more than 50% of the support of their two children, Elton (age 18) and Trista (age 24). During the year, Elton earns $4,500 providing transportation for elderly persons with disabilities, and Trista receives a...
explain the code for a beginner in c what each line do Question 3. In the...
explain the code for a beginner in c what each line do Question 3. In the following code, answer these questions: Analyze the code and how it works? How can we know if this code has been overwritten? Justify how? #include <stdlib.h> #include <unistd.h> #include <stdio.h> int main(int argc, char **argv) { int changed = 0; char buff[8]; while (changed == 0){ gets(buff); if (changed !=0){ break;} else{     printf("Enter again: ");     continue; } }      printf("the 'changed' variable...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT