Please, How do I determine the Mean Absolute Value (MAD) of an acoustic signal, which has positive and negative data points?
Is it possible to dermine it straightforward with this code:
However,
I came across, this code which I modified with my signal. My signal length is 13,230,000 data point, fs = 44100, time 300 sec.
xrec = S_ff_1500W_data3_50;
N=length(xrec);
A= 300*fs;
seg = xrec(1:A);
seg = seg/max(abs(seg));
Y=0;
for i=1:A
Y=Y+max(abs(seg(i)));
end
MAV=(1/A)*Y
MAV = mean(abs(seg(1:A)))
Please, any explanation?
2 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/721699-please-how-do-i-determine-the-mean-absolute-value-mav-of-an-acoustic-signal-which-has-positive-a#comment_1274899
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/721699-please-how-do-i-determine-the-mean-absolute-value-mav-of-an-acoustic-signal-which-has-positive-a#comment_1274899
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/721699-please-how-do-i-determine-the-mean-absolute-value-mav-of-an-acoustic-signal-which-has-positive-a#comment_1275593
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/721699-please-how-do-i-determine-the-mean-absolute-value-mav-of-an-acoustic-signal-which-has-positive-a#comment_1275593
Sign in to comment.