matlab regress函数问题,为什么总提示有错

2025-06-26 13:41:16
推荐回答(1个)
回答1:

y应该是n-by-1,x应该是n-by-P,
所以上面应该用列向量,转置一下。
[b,bint,r,rint,stats]=regress(y',x')