Question

2(a). For a 500 Hz square wave with unit amplitude, plot the approximation to it found...

2(a). For a 500 Hz square wave with unit amplitude, plot the approximation to it found by summing the first four terms of the Fourier series (that is, to the 7th harmonic) over the first period of the square wave [0, 2 ms].

Homework Answers

Answer #1

Matlab Code:

clc
clear all
close all

t = 0:.01e-3:2e-3; %Time scale over 0 to 2ms
f = 500; %Frequency in Hz
n = [1:2:7]
for var = 1:length(n)
x(var,:) = (4/(pi*n(var)))*sin(2*pi*f*t*n(var));
end
x = sum(x); %Summing all sinusoids correspondis different hormonics
plot(t*1e3,x) %plotting approximated square wave with first 4 hormonics
xlabel('time (in msec) ')
ylabel('Amplitude (in V)');
title('Approximated square wave over first 4 hormonics')

Output:

Know the answer?
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
Similar Questions
Two loudspeakers emit 500 Hz sound waves with an amplitude of 1cm. Speaker 2 is 1.00m...
Two loudspeakers emit 500 Hz sound waves with an amplitude of 1cm. Speaker 2 is 1.00m behind speaker 1, and the phase difference between the speakers is 90 degree . (I) What is the phase difference of the sound wave at a point 2.00 m in front of speaker 1? (II) What is the minimum distance between the two speakers such that the observer at this position hears the minimal sound? (6 points)
Consider the first full period of the sine function: sin(x), 0 < x < 2π. (1)...
Consider the first full period of the sine function: sin(x), 0 < x < 2π. (1) Plot the original function and your four-term approximation using a computer for the range −2π < x < 0. Comment. (2) Expand sin(x), 0 < x < 2π, in a Fourier sine series.
a) Let ?(?) = { 1 for 0 ≤ ? ≤ 1 and −1, for 2...
a) Let ?(?) = { 1 for 0 ≤ ? ≤ 1 and −1, for 2 ≤ ? ≤ 3 be a periodic signal with fundamental period 3. Calculate the Fourier Series coefficients of ?(?), ??, by hand. Simplify your result as much as you can. b) By using a 3x1 subplot, plot ?(?) signal in the first row. Take ? between 0 s and 10 s with an increment of 1 ms. Furthermore, calculate and plot the Fourier series...
1. An object of mass M oscillates on a spring with maximum amplitude A. If the...
1. An object of mass M oscillates on a spring with maximum amplitude A. If the amplitude is doubled, how will it change the period? The period is increased by a factor of 2 The period is increased by a factor of 4 The period is decreased by a factor of 2 The period is decreased by a factor of 4 The period stays the same 2. In the “Resonance” lab, you used a “piano” to generate a frequency of...
1. An amplitude modulated system has following parameters: Modulating signal frequency fm = 500 Hz, Carrier...
1. An amplitude modulated system has following parameters: Modulating signal frequency fm = 500 Hz, Carrier frequency fc = 2KHz. Draw a two-sided spectrum with approximately scaled frequencies and amplitude. Consider perfect modulation (mod index = 1). 2. What is the typical range of AM modulation index (depth)? What will happen if it is at the lowest value or highest value in the range? What will happen if it goes beyond the range? too low a level of modulation and...
PLEASE USE MAT LAB ONLY. THANK YOU (a) Create and plot the signals listed below and...
PLEASE USE MAT LAB ONLY. THANK YOU (a) Create and plot the signals listed below and save your Matlab code in a script file. i) Cosine signal of frequency 100 Hz over the range [0,0.1] seconds and samples spaced 10^- 4 seconds apart with a phase of pi/2 and an amplitude of 1.   PLEASE USE MAT LAB ONLY. THANK YOU ii) A square wave that oscillates between 0 and 1 every five samples, plot 3 periods of the waveform. iii)...
Two waves traveling in opposite directions on a stretched rope interfere to give the standing wave...
Two waves traveling in opposite directions on a stretched rope interfere to give the standing wave described by the following wave function: y(x,t) = 4 sin⁡(2πx) cos⁡(120πt), where, y is in centimetres, x is in meters, and t is in seconds. The rope is two meters long, L = 2 m, and is fixed at both ends. In terms of the oscillation period, T, at which of the following times would all elements on the string have a zero vertical...
Part I. Indicate whether true or false (T or F). ____ Storm water detention ponds typically...
Part I. Indicate whether true or false (T or F). ____ Storm water detention ponds typically are designed to regulate the outflow peak rate at or below a single target value, such as the pre-development (pre-land use change) peak runoff rate for a specified return period event. Detention storage alters the peak but not the volume of the outflow hydrograph. _____ Typical rating curves for weirs are concave upward. Typical rating curves for orifices are concave downward. ____ A sediment...
1. Is NASCARs main goal to maximize profits? If not, what is their major goal? Is...
1. Is NASCARs main goal to maximize profits? If not, what is their major goal? Is there a tradeoff involved here? 2. Is the motivation for the actions described in the NYT article (safety changes, blackbox data collection) connected to their goal? Explain. 3. If people tune in to see crashes (Nascar fans love crashes the way hockey fans love fights; when you watch the Speed Channel's edited replays of Nascar races, the plot is always the same: green flag,...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT