HOMEWORK #3
DUE OCTOBER 7th
(3 Points)
  1.  Write a subroutine to find median of series of data values. Use a sort subroutine as a starting point.( You may have to modify the subroutine. ) Apply your median subroutine to the complete input data set 'datahw3.dat' from home/h4/fort1/ directory.
  1. Using your subroutine that calculates the median, design a subroutine that calculaes a running median filter across a series of data value. Make a general program which accepts the window size. Apply this to the data set 'datahw3.dat' with window size of 3 and 5. Store the result in file outputhw33.dat and outputhw35.dat. you will need these for the next assignment.
  1. Use your program from your homework assignment #2 and write a subroutine to calculate the mean, variance and standard deviation of an input dataset. Just change the program of HW #2 into a subroutine form.
  1. Imbed all the above routines in a main program. Calculate the mean, variance, standard deviation of the input data set and do the same for the median filtered dataset.
Turn in
  1.  All programs and subroutines.
  2.  Mean variance and standard deviation of the input and median filtered data set.
  3.  Plot of input and median filtered data set using matlab.
Supplement

Tutoial for matlab is available here