Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

matlab code for equation error method

Status
Not open for further replies.

hol_jensen

Newbie level 1
Joined
Feb 1, 2007
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,287
I want to design an equalizer for a channel the is IIR and with equation error method.can anyone help me with the matlab code for equation error method??? please i need it really soon and thank you in advance
 

heres what you want i hope u understand how it works,however if you're familiar with equation error concept you'll get it.and dont forget to press helped me button.

clc
clear all
iter=10000;delay=1;runs=100;
h=[0.25 1 0.25 ];
for r=1:runs
randn('state',sum(100*clock));
s=sign(randn(iter,1)); %Bpsk modulated symbol sequence
u0=filter(h,1,s);%channel output
x=u0+sqrt(0.01)*randn(iter,1);%equalizer input
%.........LMS algorithm for equation error method...........
mau=0.001;
w=zeros(3,1);
d=[zeros(delay,1); s(1:iter-delay)];
for n=2:iter
u_e=[x(n) ;x(n-1) ;d(n-1)];
y(n)=w'*u_e;
e=d(n)-y(n);
w=w+mau*e*u_e;
s_error(r,n-1)=e*conj(e);
end
end
fvtool([w(1) w(2)],[1 -w(3)]);
MSE=mean(s_error);
w_final=abs(w);
disp(' a0 a1 b1 ')
disp(w_final')
sim_error=mean(MSE(round(iter/2):iter-2))
semilogy(MSE)
ylabel('E[(output error)^2]')
xlabel('No.of iterations')
 

    hol_jensen

    Points: 2
    Helpful Answer Positive Rating
hol_jensen said:
I want to design an equalizer for a channel the is IIR and with equation error method.can anyone help me with the matlab code for equation error method??? please i need it really soon and thank you in advance
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top