MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [原创]曲线拟合 (https://www.labfans.com/bbs/showthread.php?t=2879)

cara 2009-02-16 13:34

回复: [原创]曲线拟合
 
很好的东西,很好的人哇

kidylonglong 2009-02-16 16:52

回复: [原创]曲线拟合
 
[QUOTE=shiqiang;10319]最近发现求助曲线拟合的比较多,我就自己写了一个方便大家使用的最小二乘法曲线拟合的程序,这样需要的人可以直接下载使用了,所以以后类似的关于曲线拟合的大家不要再重复的发了。[/QUOTE]

你好,感谢你上传程序,但是我计算一道例题时遇到了问题
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)
我是初学者,谢谢指教

kiefer0107 2009-02-17 07:07

回复: [原创]曲线拟合
 
谢谢搂住,正好要用到

drgonclouder 2009-02-17 20:42

回复: [原创]曲线拟合
 
呵呵,借鉴了,谢谢楼主:redface:

pengbinsafety3 2009-02-21 18:31

回复: [原创]曲线拟合
 
赞 超赞:lol: :lol: :lol: :biggrin: :biggrin: :tongue: :tongue:

maldini 2009-02-23 16:52

回复: [原创]曲线拟合
 
正好需要 感谢楼主:biggrin:

xuemin0325 2009-02-27 15:39

回复: [原创]曲线拟合
 
很好的资源啊

Tianbian 2009-02-27 15:43

回复: [原创]曲线拟合
 
我怎么下载下来解压时说是数据破坏啊?哪位下载下的能不能发我邮箱[email protected],

急用,万分感谢!

applef 2009-03-17 12:53

回复: [原创]曲线拟合
 
下来看看。

huidongzhi 2009-03-23 11:54

回复: [原创]曲线拟合
 
先留着,以后有用


所有时间均为北京时间。现在的时间是 21:32

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.