SO503 Honors Modern Methods
Spring 2017
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, so you know how it works. After this lab you can import Excel files if you want.
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. If you prefer you can start with a blank m file.
Lab two notes: https://www.usna.edu/Users/oceano/pguth/md_help/so503/intro_programming.htm
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 in the Blackboard dropbox:
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.
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. Figures are mixed with the text, but come after the first mention in the text.
An acknowledgements section, profusely thanking any classmates or others who helped you.
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).