Resampling with arbitrary time shift in real number

This sub-function resamples a signal and shifts it in time in real number

You are now following this Submission

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 (2026). Resampling with arbitrary time shift in real number (https://in.mathworks.com/matlabcentral/fileexchange/67723-resampling-with-arbitrary-time-shift-in-real-number), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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.