필터 지우기
필터 지우기

Attempted to access som(5513.5); index must be a positive integer or logical

조회 수: 1 (최근 30일)
delay = 0.5; %atraso de 0.5s
echost = 0.7; %força do eco
D = delay*fs;
reverb_som = zeros(size(som));
for i = D+1:1:length(som);
reverb_som(i) = som(i)+echost*som(i-D);
end;
I've tried rounding i but it still presents the same error. I've also tried switching i for a constant but it's still the same. I really don't know what to do, could you please give hand? Thanks.

채택된 답변

Walter Roberson
Walter Roberson 2016년 12월 8일
D = round(delay*fs);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by