필터 지우기
필터 지우기

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 CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by