MATLAB: Finding average of a sensor signal find average of signal I have a signal as attached. I want to find the average of this signal. How could this be done? I tried findmaxima and mean functions. But I am not sure if I get the correct one. Best Answer This should help:https://in.mathworks.com/matlabcentral/answers/367412-how-to-calculate-moving-averagehttps://in.mathworks.com/matlabcentral/fileexchange/41859-moving-average-function Related SolutionsMATLAB: Matrices with customized sums for rows and columns Try randfixedsum: http://www.mathworks.com/matlabcentral/fileexchange/9700-random-vectors-with-fixed-sum MATLAB: Average data - your array [42x16384]EDITout = mean(reshape(data,size(data,1),[],8),3);eg:data - your array [55x72000]out = mean(reshape(data,size(data,1),[],3),3);orout = squeeze(mean(reshape(data,size(data,1),3,[]),2)) ; Related QuestionFinding the average valueFinding an average curve
Best Answer