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

13 次查看(过去 30 天)
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 :(

回答(1 个)

Kartik Saxena
Kartik Saxena 2023-11-21
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.

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by