No BSD License  

Highlights from
changeSampleFreq

4.0

4.0 | 1 rating Rate this file 1 Download (last 30 days) File Size: 2.34 KB File ID: #17188

changeSampleFreq

by Cornelis P. Bogerd

 

26 Oct 2007 (Updated 04 Mar 2008)

Easily change the sample frequency of a data-set

| Watch this File

File Information
Description

dataNew = changeSampleFreq(dataOld, freqOld, freqNew, qFilter, qPlot)
 
This function gives the following output:
*The original data-set but with the chosen sample frequency
 

This function uses the following input:
*dataOld: The original data-set (as a column, multiple columns are possible)
*freqOld: The sample frequency of the original data-set (Hz [1/s])
*FreqNew: The desired sample frequency (Hz [1/s])
*qFilter (optional): Switch for application of data filtering (1 = yes), default is no filtering.
*qPlot (optional): Switch for creating a random plot of one of the data-sets
(columns) to serve as a visual check. Default is no visualization.
*qLastValue: adds the last value filtered if qFilter = true), default is false.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
17 Nov 2010 Nick N

works just as promised, and straightforward, thanks much.

Please login to add a comment or rating.
Updates
04 Mar 2008

It was found to be useful to have an option to give the last very last value. Such an option has been included.

Tag Activity for this File
Tag Applied By Date/Time
time frequency Cornelis P. Bogerd 22 Oct 2008 09:32:58
wavelets Cornelis P. Bogerd 22 Oct 2008 09:32:58
sample frequency Cornelis P. Bogerd 22 Oct 2008 09:32:58
signal processing Cornelis P. Bogerd 22 Oct 2008 09:32:58
change Cornelis P. Bogerd 22 Oct 2008 09:32:58
filter Cornelis P. Bogerd 22 Oct 2008 09:32:58

Contact us at files@mathworks.com