Fourier series for a sawtooth wave with period 2L (= 4)
6 views (last 30 days)
Show older comments
SHRIDHARAN PARVATHI STALIN on 20 Nov 2021
Answered: Pavan Guntha on 23 Nov 2021
Fourier series for a sawtooth wave with period 2L
where to insert sawtooth code in this fourier series?
T = input ("Enter the period:");
n = input ( "Enter number of terms of fourier series to calculate:");
t = 0:2*T:10;
for i = 1:n
y = (y+(-(2/pi))*(sin(i*pi*t/2))/i);
Pavan Guntha on 23 Nov 2021
You could have a look at the following page to understand derving the fourier series from a Sawtooth waveform:
The equation can be implemented in MATLAB. The following MATLAB documentation links to Natural Logarithm, Exponential functions would be helpful to implement the equation.
Hope it helps!
More Answers (0)
Find more on Waveform Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!