function [a, res, s2, V] = reg_lin(X, Y) [m,n]=size(X); if m~=1 then X=X'; end [m,n]=size(Y); if m