function mn = regress(x, y) mn = [ x ones(length(x), 1) ] \ y; endfunction