# How can i did the coding ?

1 view (last 30 days)
Iffah Farhah on 13 Dec 2019
Answered: Shashwat Bajpai on 16 Dec 2019
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.

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
Iffah Farhah on 13 Dec 2019

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!