[Numpy-discussion] help with translating some matlab
Fri Feb 18 10:04:45 CST 2011
I got the following matlab code from a colleage:
h =zeros(1, N); %% initial filter coefficients
g =z/(lambda+ x1*z);
y = h*x1'; %% filter output
e = ph_cpm_out(n) - y; %% error
h = h + e*g'; %% adaptation
So it looks to me:
z is a vector
The step g=z/(lambda+x1*z) seems to be a vector division.
How do I translate this to numpy?
More information about the NumPy-Discussion