フィルターのクリア

How to do Fourier Transform/FFT on a symbolic function

45 ビュー (過去 30 日間)
Yu Wang
Yu Wang 2021 年 6 月 14 日
回答済み: Tomas Salvadores Viertel 2021 年 10 月 12 日
For example I have created a sine wave using symbolic function as follow:
syms t
CycleLength = 1/2.2e9; %(frequency = 2.2GHz);
S(t) = sin(2*pi*t/CycleLength);
fplot(S, [0 1e-8]); ylim([-1.1 1.1]);
title 'Sine wave';
And then I'd like to do FFT on the sine wave. I know FFT is designed only to work numerically on discrete data. But I don't know how to deal with the symbolic expression.
(I've already know the frequency is 2.2GHz in this case but I will be doing more FFT on other symbolic function signals)

回答 (1 件)

Tomas Salvadores Viertel
Tomas Salvadores Viertel 2021 年 10 月 12 日
You can use the fourier command to get the fourier transform of a symbolic expression.
F = fourier(S)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by