Hi,
While doing a moving window average, if the 50 % values in that window are less than a certain threshold, how can one assign NaN to the average over that window.
mvavg = movmean(temp_ms, [left_window right_window],'omitnan',... 'Endpoints', 'discard');
How should I check for the threshold over the window ?
Best Answer