[Numpy-discussion] help with translating some matlab
ndbecker2 at gmail.com
Fri Feb 18 11:04:45 EST 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