Attempted to access som(5513.5); index must be a positive integer or logical
1 回表示 (過去 30 日間)
古いコメントを表示
Carolina Homem de Gouveia
2016 年 12 月 8 日
コメント済み: Carolina Homem de Gouveia
2016 年 12 月 8 日
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.
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!