フィルターのクリア

Can anyone help me with fourier series of a signal?

2 ビュー (過去 30 日間)
Ajay Goyal
Ajay Goyal 2016 年 8 月 11 日
コメント済み: Image Analyst 2016 年 8 月 12 日
I got a signal as attached. 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)
  3 件のコメント
Ajay Goyal
Ajay Goyal 2016 年 8 月 11 日
https://i.snag.gy/EYDexk.jpg Sir, please check the attached image
Image Analyst
Image Analyst 2016 年 8 月 12 日
I meant post it here with the green and brown frame icon. Here, I will do it for you:

サインインしてコメントする。

採用された回答

Star Strider
Star Strider 2016 年 8 月 11 日
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.
  2 件のコメント
Ajay Goyal
Ajay Goyal 2016 年 8 月 11 日
編集済み: Ajay Goyal 2016 年 8 月 11 日
Thank you very much Sir. My use of FS is restricted to collection of all peak magnitudes and respective frequencies of each sine and cosine wave generated from FS for the given signal. As I have understood from your last statement that I can ignore the straight line of zero magniture. Can I continue my research work by calculating FS of triangle waveform (as I am not using FFT)? I have prepared attached code.
Star Strider
Star Strider 2016 年 8 月 12 日
My pleasure.
Your code is very difficult to follow. Instead of using separate sine and cosine terms, I would use the complex exponential to calculate the Fourier transform.
For a single pulse, you can ignore the zero segment. If your pulse repeats at regular intervals, you must include at least two pulses, with the pulses defined just as the first one was, as segments of straight lines (in this example), each with appropriate slopes and intercepts and integrated over the appropriate time intervals. The zero-value interval is implicit in those integrations, but does not have to be specifically included.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSmoothing and Denoising についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by