Clear Filters
Clear Filters

How can I find the complex fourier series and plot the the fourier series of piecewise function ?

5 views (last 30 days)
Hello guys,
I read the rules about asFking about home work help so I will not show my full code
so this is my tesk:
we have this signal X(T) with a period of T= 4
and the first think I was nedded to do is to plot it betwwen [-10 10]
so i used syms t and hendele function and with a for loop i created this :
fff
and now i stuck becuse i need to make complex fourier series on this and this is really hard becouse it is not simple function
can you please help ?
I need to write a function that will find ck with the foemula above and proof nomericly what I calculeted and also plot the series on matlab for N=10 and stuff like this but i stil dont know how to do this :(

Answers (1)

Kartik Saxena
Kartik Saxena on 21 Nov 2023
Hi,
I understand that you need to find and plot the Fourier series of a piecewise function.
Your issue is somewhat, if not entirely, similar to the issue resolved in the following MATLAB Answer:
You can refer to its answer to understand how we can calculate and plot Fourier series of a piecewise function.
I hope this resolves your issue.

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!