File Exchange

image thumbnail

Locate Starting Point of Signal in Time Series

version 1.0.0 (1.13 KB) by halleyhit
Locate starting point of signal in time series. e.g., pulse signal in real-time monitoring.


Updated 15 Nov 2018

View License

made by halleyhit in about 2013 and published in 2018
Email: or

When receiving time series in experiments, we often find some zeros before wanted signal. Also, it is difficult to locate the starting point with noise pollution. e.g. when locating partial discharge by ultra high frequency sensor, the first step is to locate starting time of each PD pulse.

This function uses ENERGY CRITERION algorithm, which can be found in "Sacha M. Markalous, Stefan Tenbohlen and Kurt Feser, Detection and Location of Partial Discharges in Power Transformers using Acoustic and Electromagnetic Signals. IEEE Transactions on Dielectrics and Electrical Insulation Vol. 15, No. 6; December 2008"

HOW to use
TimeSeries is a double vector
StartingPoint is the order number of starting point

a=[zeros(1,20) ones(1,20)]+rand(1,40);% Step signal with noise
S=userstart(a) % Starting point

Cite As

halleyhit (2020). Locate Starting Point of Signal in Time Series (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

FuSung Wang

Good job, very useful in my case.

MATLAB Release Compatibility
Created with R2018b
Compatible with R2013a to R2018b
Platform Compatibility
Windows macOS Linux