Resampling with arbitrary time shift in real number

Version 1.0.0.2 (39.9 KB) by Tomonori
This sub-function resamples a signal and shifts it in time in real number
114 Downloads
Updated 21 Nov 2019

View License

This sub-function resamples the signal and shifts it in time. The shift can be specified in real number (NOT integer multiple of dt of the upsampled signal). The resampling ratio can also be any real number.
The subfunction is useful when
- data obtained from smartphone has a sampling frequency slightly different from specified one (e.g. you want to convert a signal obtained at 101.23 Hz to a signal at 100 Hz).
- data sets obtained from multiple smartphones has sampling frequencies and initial delays slightly different from each other. These signals need to be converted to signals with the same sampling frequency and initial delay.
- data obtained from two different analog sensor has different time shift. Sensor 1 has time delay of 0.00123 second as compared to sensor 2 while they are both sampled at 100 Hz. Then convert sensor 1 signal with resampleIDUSF() with ID = 0.00123.
See also: http://www.bridge.t.u-tokyo.ac.jp/nagayama/iDRIMSResampler.pdf
references:
- A. V. Oppenheim, R. W. Schafer, Discrete-Time Signal Processing (3rd Edition)
(Prentice-Hall Signal Processing Series), Pearson.
- Nagayama, T. and Spencer Jr., B.F. "Structural health monitoring using smart
sensors" Newmark Structural Engineering Laboratory Report Series 001 ,
http://hdl.handle.net/2142/3521
- T Nagayama, BF Spencer Jr, KA Mechitov, GA Agha, “Middleware services for
structural health monitoring using smart sensors, Smart Structures and Systems 5
(2), 119-137.
- ⻑⼭ 智則, B. F. Spencer Jr., 藤野 陽三, “スマートセンサを⽤いた多点構造振動計
測のためのミドルウェア開発” ⼟⽊学会論⽂集 A,65(2), pp523-535.(in Japanese)

Cite As

Tomonori (2024). Resampling with arbitrary time shift in real number (https://www.mathworks.com/matlabcentral/fileexchange/67723-resampling-with-arbitrary-time-shift-in-real-number), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.2

Explanation on the function arguments in the file is updated.

1.0.0.1

Explanation on arguments OutLength and USF of ResampleIDUSF.m is updated.

1.0.0.0

The figure and description are updated
description is updated

The description of the unit of "ID" is updated.