Write this without a for loop?
显示 更早的评论
for c= delaySamples+1:length(audioVec)
EchoVec(c)=audioVec(c)+z(c-(delaySamples)*EchoGain);
end
4 个评论
Andrei Bobrov
2019-3-3
编辑:Andrei Bobrov
2019-3-3
What is z, EchoGain?
Michelle
2019-3-3
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
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
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);
类别
在 帮助中心 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!