Question

Use MATLAB to :

(j is the imaginary number.) The term lo is the fundamental frequency of the periodic signal, 2/T, where T is the period. Frequencies nlo, where n is an integer, are the harmonics. This infinite sum is an exact representation of the original function. If we use a finite sum, where n goes from -N to N, we will get an approximation X-(t). In this problem we will calculate and plot the Fourier series representation of a square wave with period T, and compare it to the original function. In later classes you will learn how to derive the coefficients an. For now we will just give you the equation: n evenn n odd Procedure. Write a MATLAB program that will: a) Calculate the Fourier series coefficients an from equation (2) for a given N; b) Construct the Fourier series xF(t) from equation (1), and plot it for two periods; c) Plot two periods of the actual square wave x(t) on the same graph Note that the first step gives you an array of 2N+1 coefficients. The second step gives an array in t (use a small enough resolution to get a smooth plot) where each point in t is found by summing over n. This program can be done using array operations, or loops, or a combination of both There is not a single right way, but I think you will find array operations much more concise - and one of the great advantages of using MATLAB The square wave should have amplitude ±1 and T-1 s. Run your program with N = 10, 100 and 1000.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Use MATLAB to : ("j" is the imaginary number.) The term lo is the fundamental frequency...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • SIGNALS AND SYSTEMS: PLEASE UPLOAD MATLAB CODING FOR QUESTIONS. 1. In class we found that the...

    SIGNALS AND SYSTEMS: PLEASE UPLOAD MATLAB CODING FOR QUESTIONS. 1. In class we found that the Fourier series of a unit amplitude square wave of period 2 seconds was given by (a) Show that this series can be rewritten as 0o 2 (b) Produce plots of x (t) for n-1 to N for N-1,3,9,19,and 199, that is, truncate the infinite sum to these values of N and plot the result. Remember that only odd terms are included in the sum...

  • Please help by writing a MATLAB Code for the this lab Fourier Series Synthesis You will...

    Please help by writing a MATLAB Code for the this lab Fourier Series Synthesis You will consider five continuous-time signals 1- 2- for A D 4- We were unable to transcribe this imageWe were unable to transcribe this imager(t) e-t for-1 < t > 1 x(t) 2 2 4 3 3 x(t) -4 2 2 4 2 1, 0sts be a periodic signal with fundamental period T = 2 and Fourier coefficients ak. (a) Determine the value of ao (b)...

  • (a) Determine the period, amplitude, and frequency of a signal given by, v(t) (120nt). Plot this ...

    (a) Determine the period, amplitude, and frequency of a signal given by, v(t) (120nt). Plot this signal both in the time-domain and frequency domain. (b) For the following square wave v(t), determine if it is a periodic signal, and if yes, what 10 V sin 4. [61 are its amplitude, period T and fundamental frequency f? Why do we need to convert this signal into sine/cosine wave for transmission? 2 o-oims (c) () According to Fourier Theorem, the above signal...

  • Please, please, explain the process and step by step how to solve this problem, I want to get the...

    please, please, explain the process and step by step how to solve this problem, I want to get the logic and process: >> Do not simplify the answer. I already saw other answers and still do not get the process how to solve it<< 1. In class we found that the Fourier series of a unit amplitude square wave of period 2 seconds was given by x(t) = Σ 그etjnitt HTT odd (a) Show that this series can be rewritten...

  • f) Calculate the coefficients of the trigonometric form of the Fourier series numerically in MATLAB and...

    f) Calculate the coefficients of the trigonometric form of the Fourier series numerically in MATLAB and graphically represent the one-sided spectrum (width and phase) frequency for n up to 10 compared to the analytics results. g) From the coefficients of the trigonometric form of the Fourier series , calculate the coefficients of the exposure series and present the two-sided spectrum (width and phase) frequency. h) Find the average and active value of the signal from the Fourier expansion. i) Check...

  • PLZ shows you Matlab Code X(t) 2 2 46 1. compute the Fourier Series coefficients, ck...

    PLZ shows you Matlab Code X(t) 2 2 46 1. compute the Fourier Series coefficients, ck for the signal x(t) 2. plot magnitude of c and the phase of ck in separate plots (use subplot command) plot the Fourier Series coefficients for the square wave signal: ck(12/9) sinc(2"k/3)

  • EXAMPLE 4.2 Fourier series of a square wave Consider the square wave of Figure 4.4. This signal i...

    in MATLAB plot the following EXAMPLE 4.2 Fourier series of a square wave Consider the square wave of Figure 4.4. This signal is common in physical systems. For ex- ample, this signal appears in many electronic oscillators as an intermediate step in the gener ation of a sinusoid We now calculate the Fourier coefficients of the square wave. Because V, 0< t < To/2 x(t) = from (4.23), it follows that ToJTo2 To/2 - e ikast To/2 The values at...

  • could you please solve this problem using Matlab 4. Using the Fourier series coefficients {ak} obtained,...

    could you please solve this problem using Matlab 4. Using the Fourier series coefficients {ak} obtained, construct the following signal N(t)>akekwot k=-N where ak is the kth Fourier series coefficients of r(t). Therefore, N(t) is the so-called 2N-term approximation of original signal r(t). In one figure, plot âN(t) versus t, for N 10, 20, 30, 40. In the same plot, also plot original signal (t). Visually compare N(t) and r(t) in the figure and comment on your observations

  • Can you write hand solutions and matlab code please? Q3) There is a square wave with...

    Can you write hand solutions and matlab code please? Q3) There is a square wave with the period of T=21. The amplitude is 3 between 0 and it The amplitude is 0 between 1 and 2 T. 2 3 4 5 a) Find the Fourier series coefficients of this square wave. a = x()ật Il x(t)cos(kt)dt bx = ( x(t)sin(kt)dt b) Using Matlab, plot the truncated Fourier series; (1) For k 0 to 10 (II) For k 0 to 1000...

  • Need MatLab code Exercise: Use MATLAB to generate the sinusoidal waveform: x(t) = 3 cos(1200) Consider...

    Need MatLab code Exercise: Use MATLAB to generate the sinusoidal waveform: x(t) = 3 cos(1200) Consider the frequency of this sinusoid and use this information to select an appropriate time-step and time array that will allow this signal to be correctly represented and displayed on a new MATLAB figure window (display 4 periods of this wave only). Now set up an appropriate frequency array and use the fft() and fftshift() functions to generate and plot the Fourier Transform (magnitude spectra)...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT