HOMEWORK #3
DUE OCTOBER 7th
(3 Points)
-
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.
-
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.
-
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.
-
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
-
All programs and subroutines.
-
Mean variance and standard deviation
of the input and median filtered data set.
-
Plot of input and median filtered data
set using matlab.
Supplement
Tutoial for matlab is available here