"Bruno Luong" <firstname.lastname@example.org> wrote in message <email@example.com>... > "A " <firstname.lastname@example.org> wrote in message <email@example.com>... > > > > > It did not work with me. It says that there is no matching between the inner matrix! > > I bet there is no matching between what you post and what you test on your side. > > Bruno
Looks as if the OP's vectors are row vector. not column vectors. Otherwise I don't see why X_orth*Y' should give a scalar.