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

Avatar

Please consider registering
Guest

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
Avatar
muunduk@gmail.com
New Member
Members
Forum Posts: 2
Member Since:
October 11, 2015
sp_UserOfflineSmall Offline

Hey,
I recently joined Thingspeak.com 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 Thingspeak.com.

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
Avatar
akhila

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

hi,

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: https://thingspeak.com/docs/matlab_analysis#matlab_analysis
2. ThingSpeakRead: https://thingspeak.com/docs/matlab_analysis#thingSpeakRead
3. FFT using MATLAB: http://www.mathworks.com/help/matlab/ref/fft.html

Thanks
Akhila

October 13, 2015
7:40 pm
Avatar
muunduk@gmail.com
New Member
Members
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.

Thanks

Muundu

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

MathWorks
Members
Forum Posts: 46
Member Since:
August 22, 2015
sp_UserOfflineSmall Offline

Hi,

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: http://www.mathworks.com/matlabcentral/newsreader/view_thread/27009

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.

-Rob

Senior Development Manager for IoT and Hardware Interfacing for MATLAB at MathWorks.  Visit ThingSpeak.com 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: 114

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

celinabw2, FitoSprayscroma, LunnonGor, lancevl16, bernicenk60, veronicadq18

Administrators: Hans: 387, lee: 457