BrianOBrien
Posts: 9
Joined: Sat Apr 09, 2016 7:55 pm

new to Mathematica but have used matlab.

Wed May 04, 2016 2:11 am

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?

scotty101
Posts: 2385
Joined: Fri Jun 08, 2012 6:03 pm

Re: new to Mathematica but have used matlab.

Wed May 04, 2016 1:14 pm

Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

szhorvat
Posts: 24
Joined: Wed Jun 04, 2014 2:07 am

Re: new to Mathematica but have used matlab.

Fri Jun 03, 2016 8:30 am

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.

Return to “Mathematica”

Who is online

Users browsing this forum: No registered users and 1 guest