audioread() randomly stops working

2 ビュー (過去 30 日間)
jmerritt
jmerritt 2015 年 5 月 19 日
コメント済み: jmerritt 2015 年 5 月 19 日
Hi all,
I keep having this issue where the audioread() function will stop working. If I try to import a .wav file, I get the 'Too many input arguments.' error, even though there is only 1 file in the directory by that name. If I restart Matlab it will work again, but I hate to lose all of the data I've been working on just to get the function to work again.
It also seems like this affects the sound() function as well. Could one of my toolboxes have gotten corrupted?
Thanks for any help!
  6 件のコメント
Walter Roberson
Walter Roberson 2015 年 5 月 19 日
One obscure possibility is that you might be running out of Open File Descriptors, if you have a bunch of open files that were never closed. Try
fclose('all')
when it happens, and see if you can then repeat the command.
jmerritt
jmerritt 2015 年 5 月 19 日
Ah, I fixed the issue! Turns out, there was some errant code adding directories to my search path. Removing them fixed the issue.
Thank you for the help! I'll definitely keep that command in mind for the future.

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

回答 (0 件)

カテゴリ

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