필터 지우기
필터 지우기

Why is this matlab function causing trouble in the r2013a version?

조회 수: 1 (최근 30일)
MatlabFan
MatlabFan 2013년 4월 3일
Hi,
I just purchased the matlab r2013a software version. The code below was running without error in the previous version I had (r2011a). But when I run it in the r2013a version I get an error message.
Please help.
function VowelFormants = FormantsExtraction (Vowel, fs)
[Vowel fs]=wavread('SymphonyVowel.wav');
n = round(fs/1000) + 2;
w = hamming(length(Vowel));
Vowel = Vowel.*w;
th = ar(Vowel,n); % auto-regressive model of voice
[b,a] = tfdata(th); % transfer function of vocal tract
[h,w] = freqz(b,a);
end
ERROR MESSAGE: Undefined function 'mrdivide' for input arguments of type 'cell'.
Error in freqz (line 101) [h,w,options] = firfreqz(b/a,options);
Error in FormantsExtraction (line 8) [h,w] = freqz(b,a); % frequency response of vocal tract
How can I fix this problem? Your help is much appreciated. Thank you.
  댓글 수: 10
Walter Roberson
Walter Roberson 2013년 4월 4일
I will be eating my meal now; I will continue my research later.
MatlabFan
MatlabFan 2013년 4월 4일
Thank you. I appreciate your time.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by