Unable to play simple wav file
1 次查看(过去 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 and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!