Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#11 | |
初级会员
注册日期: 2009-02-16
年龄: 44
帖子: 3
声望力: 0 ![]() |
![]() 引用:
x=[1 -1 -1 -1;1 -1 -1 1;1 -1 1 -1;1 -1 1 1;1 1 -1 -1;1 1 -1 1;1 1 1 -1;1 1 1 1] y=[7.6;10.3;9.2;10.2;8.4;11.1;9.8;12.6] 我用b=regress(y,x)可以算出b。但是用你的程序提示有错误。 ??? Error using ==> polyfit at 48 X and Y vectors must be the same size. Error in ==> polytool>dofit at 394 [stats.beta, stats.structure] = polyfit(x,y,degree); Error in ==> polytool at 174 stats = dofit(x,y,degree,stats,0); Error in ==> ff at 54 polytool(x,y,1) 我是初学者,谢谢指教 |
|
![]() |
![]() |
主题工具 | |
显示模式 | |
|
|
![]() |
||||
主题 | 主题作者 | 版面 | 回复 | 最后发表 |
How MATLAB Represents Pixel Colors | TechnicalArticles | MATLAB技术文章 | 0 | 2008-01-06 16:32 |
【求助】如何求解如下方程? | woshizhuqiqi | MATLAB论坛 | 1 | 2007-12-20 22:00 |
留学美国行李清单 | labfans | MATLAB新闻聚合 | 0 | 2007-11-20 15:15 |
【求助】如何计算离散曲线的曲率半径 | sophiemarceau | MATLAB论坛 | 0 | 2007-08-22 19:40 |