PDF and WSS analysis help please

3 views (last 30 days)
Assaf
Assaf on 5 Oct 2014
Answered: Star Strider on 6 Oct 2014
hi,
need help i have an audio (attached) file that i want to check the "pdf" on every 30msec buffer then check if its WSS
[y,Fs] = audioread('G:\sema\word.m4a'); //load audio file
B= buffer(y,Fs*0.03) //buffer evry 30 msec
m= mean(B)
v=std(B)
out = normpdf(B, m, v)
but then i get
Error using normpdf (line 36)
Non-scalar arguments must match in size.
and i dont understand why
i want to plot the pdf for each buffer
after i would like to check if thay are WSS
thanks

Answers (1)

Star Strider
Star Strider on 6 Oct 2014
I’ll let you sort out the meaning of ‘out’, but this runs:
m= mean(B);
v=std(B);
mm = repmat(m, size(B,1), 1);
vm = repmat(v, size(B,1), 1);
out = normpdf(B, mm, vm);
I have no idea what you’re doing, so I’ll leave the rest to you to interpret.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!