Issue creating a probability density function for audio file
이전 댓글 표시
Hello. Thank you in advance.
I want to generate probability density functions of amplitudes from audiofiles. However, when I use the pdf function, I get a vector of NaNs, and I do not know why. It seems to me it should be a very simple code, so I am not sure what I am missing here. See below.
[f,fs] = audioread('sound_file.wav'); %read in audio
x = sum(f,2); %average 2 channels to get single vector
y = pdf('Normal',x); %get PDF values
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Birnbaum-Saunders Distribution에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!