How can i implement fft on sine wave then plot it ?

1 次查看(过去 30 天)
i want to do fft of the sin wave then want to see the plot of it

采纳的回答

Image Analyst
Image Analyst 2014-9-27
Did you try sin(), fft(), imag(), and real(), and plot()? I attach two demos that I have that do FFTs. They probably don't do exactly what you asked but they may be instructive anyway.
  2 个评论
Hassan
Hassan 2014-10-13
Thanks for your message i actually tried as in the attached picture to do FFT of the y function and no idea if what ive got is the fft of y function . if its right how can i plot it then ? . best regards
Image Analyst
Image Analyst 2014-10-13
What attached picture? Did you try either of my demos? To plot, have you tried the functions I listed?

请先登录,再进行评论。

更多回答(1 个)

Rick Rosson
Rick Rosson 2014-9-27
doc sin
doc cos
doc fft
doc fftshift
doc abs
doc plot
doc stem
  1 个评论
Hassan
Hassan 2014-10-13
thanks for the message would u explain what doc mean cause i am new to matlab ? best regards

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by