I have two vectors, A and B. A represents the reference and B a noisy reconstruction.
I want to calculate the mean absolute error, MAE, in groups in a range of 20 units.
Then, I want to plot(A, MAE) using this piecewise evaluation.
How can I do this?