Moving Median Absolute Deviation - MATLAB Cody - MATLAB Central

Problem 44449. Moving Median Absolute Deviation

Difficulty:Rate
The median absolute deviation (MAD) is defined as
MAD = median(abs(A median(A)))
for a rolling window of length n. For example:
move_mad(1:10, 5)
returns [1 1 1 1 1 1];
move_mad(logspace(0, 1, 10), 3)
returns [0.292 0.377 0.486 0.628 0.811 1.048 1.353 1.748]
Round the result to 3 digits.

Solution Stats

37.5% Correct | 62.5% Incorrect
Last Solution submitted on Mar 31, 2023

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
2
3

Problem Recent Solvers13

Suggested Problems

More from this Author4

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!