How to do Fourier Transform/FFT on a symbolic function
Afficher commentaires plus anciens
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)
Réponses (1)
Tomas Salvadores Viertel
le 12 Oct 2021
F = fourier(S)
Catégories
En savoir plus sur Fast Fourier Transforms dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!