Question: Could you please rewrite that in this format? delay _ x = zeros ( Order + 1 , 1 ) ; % create delay line
Could you please rewrite that in this format?
delayx zerosOrder; create delay line for input x and initialise to zero
delayy zerosOrder; create delay line for output x and initialise to zero
for i:lengthyremaining
for nOrder::
delayxn delayxn; shift input delay line to the right by sample last sample is forgotten
end
delayx yremainingi; insert most recent input sample at start of delay line
Accumulator ; zero accumulator
for n:Orderapply forward coefficients FIR
Accumulator Accumulator bndelayxn; bnxin
end
for n:Orderapply feedback coefficients
Accumulator Accumulator andelayyn; anyin
end
IIRi Accumulator; output value
for nOrder::
delayyn delayyn; shift output delay line to the right by sample last sample is forgotten
end
delayy Accumulator; store latest output in delay line
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
