フィルターのクリア

Write this without a for loop?

2 ビュー (過去 30 日間)
Michelle
Michelle 2019 年 3 月 3 日
コメント済み: Walter Roberson 2020 年 11 月 15 日
for c= delaySamples+1:length(audioVec)
EchoVec(c)=audioVec(c)+z(c-(delaySamples)*EchoGain);
end
  4 件のコメント
madhan ravi
madhan ravi 2019 年 3 月 3 日
編集済み: madhan ravi 2019 年 3 月 3 日
when a third person runs your code (it is not possible to run) , nobody has the power to know what is in your computer
Walter Roberson
Walter Roberson 2020 年 11 月 15 日
Michelle, if you feel that the question is unclear, then as you are the person who posted the question, you should be the one who clarifies it to make it more clear.

サインインしてコメントする。

回答 (1 件)

Alex Mcaulley
Alex Mcaulley 2019 年 3 月 4 日
If audioVec is a column array and you ensure that (delaySamples)*EchoGain is a valid index:
c = delaySamples+1:length(audioVec);
EchoVec(delaySamples+1:length(audioVec))=audioVec(delaySamples+1:end)+z(c-(delaySamples)*EchoGain);

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by