Example: Median Smoothing
Use the
medsmooth function to smooth a data set.
1. Use the
sin function to define a function dependent on time
t.
2. Sample the function at set time intervals.
3. Use the
rnd function to inject noise to every fifth sample.
4. Plot the resulting data set.
5. Use the medsmooth function to perform median smoothing on the data set.
6. Plot the smoothed data set.