Find Delay Between Correlated Signals
Three sensors at different locations measure vibrations caused by a car as it crosses a bridge. The signals they produce arrive at the analysis station at different times. The sample rate is 11,025 Hz. Use theSignal Analyzerapp to determine the delays between the signals.
Load the signals into the MATLAB® Workspace. The name of each signal includes the number of the sensor that took it.
loadsensorData
Open the app. Drag all three signals from theWorkspace Browserto the Signal table. Add time information. Select the three signals in the Signal table and click theTime Valuesbutton on the分析仪tab. Select theSample Rate and Start Time
option and enter the sample rate of 11,025 Hz. For more information, seeEdit Sample Rate and Other Time Information. Plot the first two signals in separate displays.
The signal froms2
arrives earlier than the signal froms1
.
The signals share a common time axis. Link their time spans by selecting each display and selectingLink Timeon theDisplaytab. To estimate the delay between the signals, pan them horizontally and line up a salient feature to the end of the time axis. From theTimetab, read the time from the lower limit of the time-axis. Choose a region where the signal-to-noise ratio is high, such as the signal maximum toward the end of each signal. In the signal froms2
, that feature occurs about 0.197 second after the clock starts. Similarly, the signal froms1
has that feature about 0.229 second after the start. Therefore, the delay is approximately 0.032 second.
You can also use data cursors to find a delay. Press the space bar to reset the view. Clear the bottom display and then plots3
. On theDisplaytab, clickData Cursorsand selectTwo
. Place a cursor on the maximum of each signal. You can read the lag of approximately 0.014 second betweens1
ands3
直接from the app.
You can get similar results with thefinddelay
andxcorr
functions.
See Also
Apps
Functions
Related Examples
- Resolve Tones by Varying Window Leakage
- Find Interference Using Persistence Spectrum
- Modulation and Demodulation Using Complex Envelope
- Find and Track Ridges Using Reassigned Spectrogram
- Extract Voices from Music Signal
- Resample and Filter a Nonuniformly Sampled Signal
- Declip Saturated Signals Using Your Own Function
- Compute Envelope Spectrum of Vibration Signal
- Extract Regions of Interest from Whale Song
More About
- Using Signal Analyzer App
- Edit Sample Rate and Other Time Information
- Data Types Supported by Signal Analyzer
- Spectrum Computation in Signal Analyzer
- Persistence Spectrum in Signal Analyzer
- Spectrogram Computation in Signal Analyzer
- Scalogram Computation in Signal Analyzer
- Keyboard Shortcuts for Signal Analyzer
- 信号分析仪的技巧和局限性