Functions > Data Analysis > Smoothing > Example: Median Smoothing
  
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.
Click to copy this expression
2. Sample the function at set time intervals.
Click to copy this expression
Click to copy this expression
Click to copy this expression
3. Use the rnd function to inject noise to every fifth sample.
Click to copy this expression
Click to copy this expression
4. Plot the resulting data set.
Click to copy this expression
5. Use the medsmooth function to perform median smoothing on the data set.
Click to copy this expression
6. Plot the smoothed data set.
Click to copy this expression