Filter löschen
Filter löschen

Write this without a for loop?

2 Ansichten (letzte 30 Tage)
Michelle
Michelle am 3 Mär. 2019
Kommentiert: Walter Roberson am 15 Nov. 2020
for c= delaySamples+1:length(audioVec)
EchoVec(c)=audioVec(c)+z(c-(delaySamples)*EchoGain);
end
  4 Kommentare
madhan ravi
madhan ravi am 3 Mär. 2019
Bearbeitet: madhan ravi am 3 Mär. 2019
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 am 15 Nov. 2020
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Alex Mcaulley
Alex Mcaulley am 4 Mär. 2019
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);

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by