So, the goal of this code is to calculate a Coefficient of Variation with time window of 5 seconds.
Here is my code.
Mmean = movmean (datanabs,t);
Mstd = movstd(datanabs,t);
It's working but I think there is a better and efficint way to do it. Any help would be appreciated. Thanks in advance.