wavread does not work on matlab 2009a (64bit windows) [index exceeds matrix dimensions]

1 次查看(过去 30 天)
i've succsessfully used wavread to read different .wav files on a linux based system.
the same code does not work on an older windwos version of matlab. i always get:
??? Error using ==> wavread at 166
Index exceeds matrix dimensions.
code snippelet looks like this:
sweeps = wavread('RockOrgan Vs Clarinet Stat/Clarinet261Hz(start).wav',2*SR)';
where SR is 44,1khz.
what could be the reason?
richard

采纳的回答

Walter Roberson
Walter Roberson 2011-11-2
Are you certain that the file has 2*SR or more samples in it?

更多回答(1 个)

Richard
Richard 2011-11-2
actually yes, the file is around a minute long and everything worked perfectly fine on the other system
  2 个评论
Walter Roberson
Walter Roberson 2011-11-2
Please show the traceback including the line of wavread() that gives the problem.
Please use
which -all wavread
to ensure that you are not accidentally getting a wavread that you do not expect.
Which MATLAB version are you using?
Richard
Richard 2011-11-2
thx for the answer:
C:\Program Files\MATLAB\R2009a\toolbox\matlab\audiovideo\wavread.m
>> wavread('C.wav', 88200)
??? Error using ==> wavread at 166
Index exceeds matrix dimensions.
catch exception
fclose(fid);
throw(exception);
end
line 166 is the throw clause

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by