といった形で実行させると、 error: input(x)/output(y) data must have same number of rows といったエラーが出る。leastsqr.mのソースを見ると、
% check data vectors- same length? m=length(y); n=length(pin); p=pin;[m1,m2]=size(x); if m1〜=m ,error('input(x)/output(y) data must have same number of rows ') ,end;