Can anyone help me with fourier series of a signal?

T
Timothy · Feb 2, 2021 · 1.9K views
Question
My doubt is can I break the signal in a triangle and a straight line, then calculating fourier series for each. Will this break may affect my answer (magnitude * frequency)
Expert Answer
Profile picture of Kshitij Singh
Kshitij Singh PhD Expert
Answered Aug 25, 2026
If you’re doing a numeric fft, do the Fourier Transform of the entire signal.
 
To do it symbolically, separate it into two segments for each part of the triangle, and add:
syms w t f1(t) f2(t)
f1(t) = 40*t;
f2(t) = 40-40*t;
F(w) = int(f1(t)*exp(1i*w*t), t, 0, 0.5) + int(f2(t)*exp(1i*w*t), t, 0.5, 1);
F(w) = simplify(F(w), 'steps',20)

F(w) =

-(40*(exp((w*1i)/2) - 1)^2)/w^2
It is zero elsewhere, so you can ignore that section.

 

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!