buffer function error using input arguments

4 ビュー (過去 30 日間)
gowthami kommineni
gowthami kommineni 2016 年 2 月 16 日
回答済み: Jan 2016 年 2 月 16 日
[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

回答 (1 件)

Jan
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.

カテゴリ

Help Center および File ExchangeC Shared Library Integration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by