主题: [MATLAB基础] matlab菜鸟问题
查看单个帖子
旧 2011-11-30, 13:23   #6
赖明婵
初级会员
 
注册日期: 2011-11-30
帖子: 2
声望力: 0
赖明婵 正向着好的方向发展
默认 回复: matlab菜鸟问题

我也是个新手,我想问一下怎么运行下面的程序啊:
x=[113.2 155.2 192.8 233.2 300.3]
y=[1164701 1306936 1261643 1581008 1887837]
x=[ones(5),x]'
[b,bint,r,rint,stats]=regress(y,x)
为什么我运行出来都有错误,都是说All matrices on a row in the bracketed expression must have the
same number of rows.
赖明婵 当前离线   回复时引用此帖