Fast Fourier transform and moving average in mat lab. | MATLAB IoT Analytics | Forum


Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Fast Fourier transform and moving average in mat lab.
No permission to create posts
October 11, 2015
1:06 am
New Member
Forum Posts: 2
Member Since:
October 11, 2015
sp_UserOfflineSmall Offline

I recently joined and I want to log voltage and current reading and measure up the 10th harmonic hence I am wondering if anyone knows how to perform the fast Fourier transform of data posted to

I am monitoring a like that expects Dc current only hence I would like to implement a moving average filter if it has any disturbances. Any help or suggestion will be highly appreciated

October 11, 2015
8:04 pm

Forum Posts: 21
Member Since:
August 10, 2015
sp_UserOfflineSmall Offline


You could use MATLAB Analysis app in ThingSpeak to do the fast fourier transform of data.

You would need to read the data from your ThingSpeak channel via ThingSpeakRead API.

Here are links to relevant documentation:

1. MATLAB Analysis:
2. ThingSpeakRead:
3. FFT using MATLAB:


October 13, 2015
7:40 pm
New Member
Forum Posts: 2
Member Since:
October 11, 2015
sp_UserOfflineSmall Offline

Hey akhila

Thanks for this really helped, I managed to read my data and plot a graph of the data in thingspeak by using
thingSpeakPlot(data); but i am not able to do the fft, if you know the syntax on how to perform the fft , please help.



October 14, 2015
9:41 am
Rob Purser
Natick, MA

Forum Posts: 47
Member Since:
August 22, 2015
sp_UserOfflineSmall Offline


Like Akhila commented earlier, there's a good discussion of how to use the FFT function in MATLAB. See the link she posted. There's also a good discussion here:

Typically, people are really interested in the Power Spectral Density, rather than the true FFT -- the topic above discusses that, and wikipedia has a lot of good information.


Senior Development Manager for IoT and Hardware Interfacing for MATLAB at MathWorks.  Visit to explore the IoT Analytic platform that speaks MATLAB made for engineers and scientists.  You can collect, analyze, and act in 5 minutes or less!

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

khanhNguyen_CT, susyburr, quijano__, meosuckhoe, briskpanda, Dejw0089

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457