Question

This problem needs to be solved using MATLAB! I need help with this homework. I will...

This problem needs to be solved using MATLAB!

I need help with this homework. I will give 100% rating to the answer that is successfully executed and completed. Please provide screenshots of both the MATLAB code and the plots.

Problem 4:

  1. sketch the signal g(t) = t2 and find the exponential Fourier series to represent g(t) over the interval [-1,1] (Find Dn' s).
  2. Plot Dn for n = -20:20. (use stem function in MATLAB and provide your code as well)
  3. Sketch the Fourier series φ(t) for all the values of t.

Please remember to include both the MATLAB code and plots.

Thank you!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(B) and (C) MATLAB CODES:

clear;
clc;
t=-5:0.0001:5;
n=-20:20;
Dn=2*cos(n*pi)./((n.^2)*pi^2);
Dn(n==0)=1/3;
x=Dn*(exp(-j*pi*n'*t));
figure(1)
stem(n,Dn);
grid on;
title('Dn plot');
xlabel('n');
ylabel('Dn');
figure(2)
plot(t,x);
title('fourier series plot from -5 to 5');
xlabel('t');
ylabel('phi(t)');
grid on;

OUTPUTS:

(C)

SCREEN SHOT OF CODE:

Add a comment
Know the answer?
Add Answer to:
This problem needs to be solved using MATLAB! I need help with this homework. I will...
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
  • solve it using matlab 2.7-1 (a) Sketch the signal g(t) = 12 and find the exponential...

    solve it using matlab 2.7-1 (a) Sketch the signal g(t) = 12 and find the exponential Fourier series to represent 8(1) over the interval (-1, 1). Sketch the Fourier series p(i) for all values of 1.

  • problem E 1. 20 points Consider the signal g(t) = t2 over the interval (-1,1) and...

    problem E 1. 20 points Consider the signal g(t) = t2 over the interval (-1,1) and it's periodic extension. (a) Find the exponential Fourier series (F.S.) for this signal. (b) Find the compact trigonometric Fourier series. (c) From the exponential F.S., plot the amplitude and phase spectrum. (d) Plot the approximated signal you obtain via the Fourier Series with (i) the DC component only; (ii) up to the first harmonic, and (iii) up to the second harmonic e) Using Parseval's...

  • Use matlab Need the matlab code Problem 3: (a) Use Fourier transform to find i(t) in...

    Use matlab Need the matlab code Problem 3: (a) Use Fourier transform to find i(t) in the circuit below if v.( 10e2tu(t). Use MATLAB to solve your problem. (b) Plot the magnitude and phase spectrum of the current I(o). 2Ω 3 20 1 H Submit the solution in word file. The used MATLAB code should be included Due date: last day of classes

  • please sketch the polar plot of the frequency response.. (briefly please work in matlab) Problem-1 (100...

    please sketch the polar plot of the frequency response.. (briefly please work in matlab) Problem-1 (100 pts) Sketch the polar plot of the frequency response for the following loop transfer functions and analyze the stability of these systems based on the polar plots. (Hint: You can write a Matlab code to plot the response of these systems in polar coordinates and include your code in your report. Plots obtained by using the "nyquist0" function of Matlab will get a zero...

  • Suppose, we let g(t) of problem 1 be periodic (i.e., g(t) is 9T (t) according to the notation using). To be prec...

    Suppose, we let g(t) of problem 1 be periodic (i.e., g(t) is 9T (t) according to the notation using). To be precise let A 4Volts, let the pulse width T-0.1 seconds and let the 0.2 seconds. Find its continuous Fourier transform. Hint: gr. (t) is now that we are fundamental period To periodic and hence you can first find the Fourier series coefficients (C,) and relate those coefficients to the continuous Fourier transform of a periodic signal. Accurately sketch the...

  • 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...

  • MATLAB HELP Need help solving this one problem using matlab. The mass of the system shown...

    MATLAB HELP Need help solving this one problem using matlab. The mass of the system shown in Figure is released from rest at x0_6in when t-0. i. Plot the response of mass x(t) for the following W-96.6 lb cases: (a) c4 lb.sec/ft, (b) c12 lb. sec/ft, (c) c 18 lb. sec/ft, (d) No damper Comment on the plots for the 4 different cases. ii. Everything should be done using computer including calculations, plots, etc...

  • During lab 4, we have seen numerical implementation of Fourier Series for periodic signals. As first part of this assignment, you need to write a Matlab function that would take an array representing...

    During lab 4, we have seen numerical implementation of Fourier Series for periodic signals. As first part of this assignment, you need to write a Matlab function that would take an array representing a single period of a signal (x), corresponding time array (t), and return the Fourier Series coefficients (Ck) in exponential form. The function should also be able to take two (2) optional input arguments: number of Fourier coefficients (Nk) and plot option (p). Use the template ‘fourier_series_exp.m’...

  • Please I need help with MATLAB .. PLease help me . Thankyou Write Matlab code to...

    Please I need help with MATLAB .. PLease help me . Thankyou Write Matlab code to plot a 2D sinc function over a 2D cartesian grid where x ranges from 100 to 355 and y ranges from 0 to 255 and the sinc is centered at somewhere not midway in the grid. First plot the grid, and then plot the function on the grid (both as grayscale and as a surface plot). Comment the code well, generate the figures and...

  • Hi, can someone help me obtain the Figure 1 graph using Matlab? I need to see...

    Hi, can someone help me obtain the Figure 1 graph using Matlab? I need to see the code how you do the DTFT in Matlab. Thanks! The impulse response of a discrete-time LTI (linear time-invariant) system is, h[n] = Sinna Refer to Table 5.2 in the textbook for the basic discrete-time Fourier transform pairs The frequency response of the LTl system is, H (ejo, Here, H(e") is periodic with period 2 Step 2 of 31 Sketch the frequency response of...

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