Audioread filname not on specified path / Restoredefaultpath not working duplicate file name

1 回表示 (過去 30 日間)
Hi! I'm trying to get my code working again, but whenever I run audioread() it tells me that it was not specified on the path. This is the offending line:
filename = audiovideo.internal.absolutePathForReading(...
filename, ...
'MATLAB:audiovideo:audioread:fileNotFound', ...
'MATLAB:audiovideo:audioread:filePermissionDenied');
I tried restoredefaultpath, but it tells me that there are duplicate directory names. I've tried deleting the one from the path that i could find, but it still wouldn't run. I've reinstalled MATLAB on my computer twice, so maybe that's what it's from, but I don't know how to fix that. I'm not quite sure what the problem is, but it says the error is from this line:
matlabpath([userpath, RESTOREDEFAULTPATH_result]);
Any help is greatly appreciated, I'm really at a loss for what to do.

採用された回答

Star Strider
Star Strider 2016 年 3 月 27 日
I’m not exactly sure what you’re doing.
Type this in your Command Window:
which('audioread', '-all')
and you should get:
C:\Program Files\MATLAB\R2016a\toolbox\matlab\audiovideo\audioread.m
or something similar.
How did you call audioread initially? What was the error?
  5 件のコメント
adi zeira
adi zeira 2017 年 1 月 2 日
Hi Sebastien ,can you say how did you solve the problem? I have a similar problem...

サインインしてコメントする。

その他の回答 (1 件)

seth kum
seth kum 2016 年 5 月 10 日
Hello, I have a similar problem. I am trying to extract some frames from .avi file. Matlab has a sample code with sample file 'rhinos.avi'. I tried replacing my .avi file in the same location as rhinos.avi file. But Matlab keeps giving me the same error: Error using VideoReader/init (line 607) The filename specified was not found in the MATLAB path.
Error in VideoReader (line 172) obj.init(fileName);
Any inputs would be appreciated. Thanks.
  1 件のコメント
Brian Barbosa
Brian Barbosa 2017 年 3 月 1 日
Hello Seth, did you find how to solve this problem? I'm having the same issue

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by