Unable to play simple wav file
2 ビュー (過去 30 日間)
古いコメントを表示
I am using the following code:
[y,Fs] = wavread('track.wav');
sound(y,Fs)
to play a track using matlab.
However, I received the following error:
??? Error using ==> playsnd
Data must have one or two columns.
Error in ==> sound at 58
playsnd(y,fs,bits);
What could have possibly caused this problem?
0 件のコメント
回答 (2 件)
Andreas Goser
2012 年 7 月 19 日
Well, it looks like your data has not one or two columns :-)
I suggest that you post the result of
whos y Fs
1 件のコメント
Jan
2012 年 7 月 19 日
Another marvelous example for the smart error messages of Matlab. They are simply worth to read.
Henok
2014 年 6 月 24 日
>> whos y Fs Name Size Bytes Class Attributes
Fs 1x1 8 double
y 2x395264 6324224 double
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Audio I/O and Waveform Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!