the problem is that x[n] is the receiving bits after upsampling of the bits at the receiver side which is than passed through the root raised cosine filter and thna has to be passed through the equilizer.
Now x[n] which is the output of upsampling is in the matrix form of dimension(say 1 x 20000) and y[n] is the equilizer output. now x[n-1] or x[n-2], i guess basically means the delayed sample. if i will just write the for loop as mentioned above than for n=1 (1st iteration) my equation will become y(1)=x(1)-a1*x(0)+a2*x(-1) and so on, which i guess does not make sense. because its the complete signal which need to be passed through the equilizer and the output should also be of all the bits.