SO503 Honors Modern Methods

Spring 2013

Lab 5: Cross Correlation

  Lab Objectives:

  1. Resample a series.

  2. Perform a cross correlation, understanding the concept of lag.

  3. Divide a vector into x and y components.

  4. Use a loop to find the maximum value

  5. Do a double loop

There is a  Matlab m file xcorr_lab.m and a data set time_tide_weather.csv which show you how to resample a series and perform a cross correlation.  There is a function linear_reinterpolate.m if you do not like what is built into Matlab.

You should look up the fliplr or flipud to deal with the ordering problem.

The data you used last week will be used for this lab.

You can do any required manipulations of the data file in either Matlab or Excel , but the requirements listed below must be done in Matlab and your code must show how they were done.  This data set is relatively short, but your program should be prepared to handle a much larger data set.

General Matlab tips and resources.


Due Wed 20 Feb at 1330 hours in the Blackboard dropbox, in a single Word Document, with your last name as the first element: