I have a 2D matrix, A
, each row representing a sample of signal,
I want to filter it by removing the samples having mean more and less than a threshold.
so I calculate the mean like m = mean(A');
then I want to do something like
A(m > 2 || m < 1 , :) = [];
Which faces with an error,
I tried doing like,
A(m > 2 , :) = [];
A(m < 1 , :) = [];
But I realized that after executing the first line, the indexes change and ...
So what can I do?