SO503 Honors Modern Methods
Spring 2013
Lab 2: Matlab Does Lab 1
Repeat Lab 1 using Matlab
The data files you need are called norm_gps_1.txt and norm_gps_2.txt. These are the same files we used in Excel. You are not to import the Excel workbook, but use the data import option in Matlab.
There is a Matlab m file norm_gps.m. It "works" at least enough to get you started. It is usually easier to modify a working program to make it do what you want, rather than starting to program from scratch. You are responsible for verifying that any numbers it computes are in fact correct, for example by comparing them to what you got with Excel.
Manipulating an ASCII data file.
You must:
Compute the speed of the GPS unit.
Verify that the heading is correctly computed, and if not fix it.
Modify the program to read the second file. Do this in a "smart" way so that if you got another file the change for it would not be so difficult--instead of making a lot of changes, can you make one and let the computer handle the details?.
Due Tues 29 Jan at 1330 hours in the Blackboard dropbox:
Correctly labeled graphs of the speed and heading, both from Matlab, for the second file only. Graph both the raw data, a filtered version, and the version recorded by the data logger.
A discussion, with references to your figures, of:
How Matlab and Excel behave in the same way for this exercise, and how they are different.
Whether it was necessary to compute the speed and heading, or if you think that the GPS Logger did an adequate job and you could just have used that.
An appendix with your Matlab code, with enough comments for someone to understand you (like you if you have to come back to this kind of problem next fall, or a graded in class exercise this spring).