Page 1 of 1

new to Mathematica but have used matlab.

Posted: Wed May 04, 2016 2:11 am
by BrianOBrien
I've used matlab before but never Mathematica.

I'd like to do some fourier analysis with mathematica..

Can someone post a method to create a sin wave
plot it
do a forward fft and then plot the power spectrum?

Re: new to Mathematica but have used matlab.

Posted: Wed May 04, 2016 1:14 pm
by scotty101

Re: new to Mathematica but have used matlab.

Posted: Fri Jun 03, 2016 8:30 am
by szhorvat
FourierTransform is not what you need. That function computes a symbolic transform. You need Fourier instead to use on numerical data.

To generate an array, look up Table. To plot it, or its Fourier transform, use ListPlot. Fourier returns complex quantities, so you'll probably want Abs.