Why do I keep getting errors?

1 次查看(过去 30 天)
codefanta
codefanta 2019-3-18
Error using audioread (line 88)
File could not be read due to an unexpected error. Reason: Error in MAT5 file. Bad block structure.
Error in Untitled2 (line 18)
[s,Fs1] = audioread('whitenoise.wav'); % load audio data
[s,Fs1] = audioread('whitenoise.wav'); % load audio data
[imp1,Fs2] = audioread('fftimpz.wav'); % load impulse response data
imp = downsample(imp1,round(Fs2/Fs1)); % downsample the impulse response to the Homer sampling frequency
imp = imp(:,2); % use right channel only (since Homer is mono)
plot((0:length(imp)-1)/Fs1, imp);
grid on;
xlabel('Time(s)');
title('Measured Impulse Response of a big hall');
y1 = conv(imp, s);
soundsc(s,Fs1); % play original Hommer
pause; % press Any Key to play the next sound
soundsc(y1,Fs1); % play Hommer in the big hall
  6 个评论
codefanta
codefanta 2019-3-20
Hello Walter, I am using Matlab 18b.
Hello Rik, I have added the Wav files in a zip file
Walter Roberson
Walter Roberson 2019-3-20
Which Linux distribution are you using ?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile 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!

Translated by