Code covered by the BSD License  

Highlights from
Signal RMS

4.875

4.9 | 8 ratings Rate this file 108 Downloads (last 30 days) File Size: 1.56 KB File ID: #11871

Signal RMS

by Bolu Ajiboye

 

02 Aug 2006 (Updated 14 Aug 2009)

Calculates windowed RMS of signals

| Watch this File

File Information
Description

% Calculates windowed (over- and non-overlapping) RMS of a signal using the specified windowlength
% y = rms(signal, windowlength, overlap, zeropad)
% signal is a 1-D vector
% windowlength is an integer length of the RMS window in samples
% overlap is the number of samples to overlap adjacent windows (enter 0 to use non-overlapping windows)
% zeropad is a flag for zero padding the end of your data...(0 for NO, 1 for YES)
% ex. y=rms(mysignal, 30, 10, 1). Calculate RMS with window of length 30 samples, overlapped by 10 samples each, and zeropad the last window if necessary
% ex. y=rms(mysignal, 30, 0, 0). Calculate RMS with window of length 30 samples, no overlapping samples, and do not zeropad the last window

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (12)
06 Sep 2006 Tobias Moosmayr

nice stuff. saves time!

03 Jan 2007 Vishnuvenkatesh Dhage  
26 May 2008 muyar muyar

Good job. Congratulate !!!

14 Aug 2008 alloucha okba

besoin de calculer la compasante moyenne d'un signal

09 Aug 2009 Vishi Vishi

What's the size of the overlap?

12 Jan 2010 Ralph

Thanks very much!

02 Feb 2010 Imtiaz Hussain

Thanks.......

14 Jun 2010 André Pimentel

Nice stuff! Very helpful

10 Sep 2010 Tony  
10 Sep 2010 Tony

Can't believe this isn't a built in function.

27 Apr 2011 Mo-Sheng Chiu  
27 Apr 2011 Mo-Sheng Chiu

It's pretty convenient!

Please login to add a comment or rating.
Updates
14 Aug 2009

Allowed for overlapping and non-overlapping windows as an input

Tag Activity for this File
Tag Applied By Date/Time
audio processing Bolu Ajiboye 22 Oct 2008 08:34:22
video processing Bolu Ajiboye 22 Oct 2008 08:34:22
signal rms time window analysis Bolu Ajiboye 22 Oct 2008 08:34:22
signal rms time window analysis Bhasker Keely 18 Aug 2009 00:51:56
signal rms time window analysis Ruud 17 Jan 2011 03:26:59
video processing Mo-Sheng Chiu 27 Apr 2011 20:36:24
audio processing Mo-Sheng Chiu 27 Apr 2011 20:36:27
audio processing Fiona 15 May 2011 15:33:01
signal rms time window analysis Fiona 15 May 2011 15:33:04
video processing Fiona 15 May 2011 15:33:06
audio processing Igor 30 Jul 2011 17:05:10
video processing Mat WU 03 Nov 2011 03:55:14

Contact us at files@mathworks.com