Resampling with arbitrary time shift in real number

Version (39.9 KB) by Tomonori
This sub-function resamples a signal and shifts it in time in real number
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:
- 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 ,
- 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 (, 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

Explanation on the function arguments in the file is updated.

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

The figure and description are updated
description is updated

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