buffer function error using input arguments
1 次查看(过去 30 天)
显示 更早的评论
[y,Fs,nbits]=wavread('C:\Users\GOTHAMI\Desktop\piano.wav');
[R1,C1]=size(y);
[zas]=buffer(y,nspf);
iam getting eError using ==> buffer Input must be a vector.
Error in ==> prj3 at 9 [zas]=buffer(y,nspf); rror like this
0 个评论
回答(1 个)
Jan
2016-2-16
As long as you do not explain what "nspf" is, we cannot guess the problem. But "y" might be a mtarix, if the WAV file is in stereo. But as the message explains, buffer expects a vector.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 CubeSat and Satellites 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!