Help! Error using audioread (line 90) The filename specified was not found in the MATLAB path.
조회 수: 143 (최근 30일)
이전 댓글 표시
Hello, I keep getting this error on my code.
[x1,Fs] = audioread('noisysig.wav'); % read the noisy signal
[x2,Fs] = audioread('noisesamp.wav'); % read the noise sample
Error using audioread (line 90)
The filename specified was not found in the MATLAB path.
댓글 수: 0
채택된 답변
Guillaume
2020년 4월 30일
Since you don't specify the full path of the file, matlab looks for it in the current directory (whatever that may be) or any folder specified in the matlab path. However, it can't find your file in any of these directories.
So either make sure that your wav file is in the current directory or better, give matlab the full path of the file:
rootdirectory = 'C:\somewhere\somefolder'; %obviously replace with the correct information
[x1, Fs1] = audioread(fullfile(rootdirectory, 'noisysig.wav'));
[x2, Fs2] = audioread(fullfile(rootdirectory, 'noisesamp.wav'));
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Search Path에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!