Tuesday, January 10, 2012

Auto- and Cross-correlation demo in MATLAB

Purpose of the GUI is to help readers visualize the auto- and cross-correlation of discrete time signals.

A screenshot of the cross-correlation demo using MATLAB GUI

How to use:
  1. Download MATLAB files from here.
  2. In MATLAB, navigate to the folder where the files are stored 
  3. Type gui_xcorr and hit Enter. 

Acceptable formats as input discrete-time signals:
  • An array, such as [3, 2, 1, 5] or cos(2*pi*0.02*(0:99))]
  • A 2-row matrix with the top row storing sample indices and the bottom row storing sample data, such as [0:3; 3 2 1 5] or [0:99; cos(2*pi*0.02*(0:99))]







No comments:

Post a Comment