"Blue gRay" <ffffffffffffffff@hotmail.com> wrote in message <i1q705$2egd$1@adenine.netfront.net>...
> Hi,
>
> I have a matrix X [m x n] and a vector Y [m x 1]
>
> I want to update X following this algorithm
>
> for i=1:m
> for j=1:m
> if Y(j)<Y(i)
> rj = sqrt(sum((X(i,:)X(j,:)).^2));
> B = rj*coeff;
> X(i,:) = (1B)*X(i,:) + B*X(j,:) + ui(iter,:);
> end
> end
> end
>
> A professor said me that there is a possibility to avoid the 2 cycles and
> make it just by matrix operations (not exactly that algorithm but similar,
> by considering the coefficient B in the (1B)*X(i,:) like the mean of all
> the B for the j that satify Y(j)<Y(i) )
>
> I am trying to figure out how to do that but without success.
> Do someone see some tricky solution for it?
>
> Cheers
>
> fff
>
>
>
>
>  news://freenews.netfront.net/  complaints: news@netfront.net 
What is it, exactly, that you are trying to do? I'm having a hard time following the script you provided to determine what the overall goal is. That may be useful to know.
