Implement 1-D median filter over input vector x as described:
- Moving window size is 3
- Output is middle/central value in moving window
- First output y is calculated over first three input values
- Last output is calculated over last three input values
- Avoid using on library functions with the same purpose: med1filt(), movmedian().
Example:
x = [2 3 1 4 6 2 60 8 3 5 7 6];
y = [2 3 4 4 6 8 8 5 5 6];
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers15
Suggested Problems
-
Compute a dot product of two vectors x and y
1054 Solvers
-
Find a subset that divides the vector into equal halves
402 Solvers
-
Vector of numbers divisible by 3
154 Solvers
-
Create a two dimensional zero matrix
531 Solvers
-
709 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!