Info

This question is closed. Reopen it to edit or answer.

How can i did the coding ?

2 views (last 30 days)
Iffah Farhah
Iffah Farhah on 13 Dec 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
Use Matlab software to draw a graph of the Fourier series approximations over square signal function, x(t), for k=1, k=5, k=25,k=50 and k=100. Use the equations in Fourier series and programming it using matlab script to plot these graphs. (Provide code and plot the graph in microsoft Word) . T= 2pi. Refer to the picture for the equation and graph.
  2 Comments
Andreas Bernatzky
Andreas Bernatzky on 13 Dec 2019
At first you should try to define and plot your square-signal with plot() :)
If that works we can have a further look

Answers (1)

Shashwat Bajpai
Shashwat Bajpai on 16 Dec 2019
From the image i assume you are trying to us the frac function to create the equation.
I suggest going through the following link for information on the fourier function and the functionalities it offers: https://www.mathworks.com/help/releases/R2019a/symbolic/fourier.html
The documentation help for frac function can be found on the following link:
Hope this helps!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!