Plotting of a simple sine function in a frequency domain

Hello, I need help with plotting of a simple sine or cosine function in a frequency domain. I have tried to look on the net how to do this but without a success. It should be in continuous time. I just want to see the 2 delta functions and I will continue from there. Thanks.

1 commentaire

I first thought you want a sine wave in the frequency domain, but you don't - your sine wave is in the time or spatial domain. More precise/less ambiguous wording would be "I would like to plot the spectrum, in the frequency domain, of a time domain signal that is a sine or cosine wave in the time domain."

Connectez-vous pour commenter.

Réponses (2)

Star Strider
Star Strider le 18 Mai 2016
See the R2015a documentation for fft. Everything you need is there.
See specifically the code just above and below the first plot figure.
FAHAD AHMED
FAHAD AHMED le 5 Juil 2021
Plot a sine wave in time domain and transforms this sine wave into frequency domain.

Catégories

En savoir plus sur Fourier Analysis and Filtering dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by