Matlab lowess拟合,matlab拟合出曲面后,还需要对应的公式
你用什么擬合的,如果cftool的話,在fit下面有個savetoworkspace,存好后輸入fittedmodel就可以看到,但是好像插值和lowess方法沒有給出系數。
Exporting a Fit to the Workspace
To export a fit to the MATLAB workspace, follow these steps:
1.
Select a fit and save it to the MATLAB workspace using one of these methods:
*
Right-click the fit listed in the Table of Fits and select Save Fit myfitname to Workspace
*
Select a fit figure in the Curve Fitting Tool and select Fit > Save to Workspace.
The Save Fit to MATLAB Workspace dialog box opens.
2.
Edit the names as appropriate. If you previously exported fits, the toolbox automatically adds a numbered suffix to the default names so there is no danger of overwriting them.
3.
Choose which options you want to export by selecting the check boxes. Check box options are as follows:
*
Save fit to MATLAB object named fittedmodel — This option creates a cfit or sfit object, that encapsulates the result of fitting a curve or surface to data. You can examine the fit coefficients at the command line, for example:
fittedmodel
Linear model Poly22:
fittedmodel1(x,y) = p00 + p10*x + p01*y + p20*x^2...
+ p11*x*y + p02*y^2
Coefficients (with 95% confidence bounds):
p00 =? ?? ? 302.1??(247.3, 356.8)
p10 =? ?? ? -1395??(-1751, -1039)
p01 =? ???0.03525??(0.01899, 0.05151)
p20 =? ?? ???1696??(1099, 2293)
p11 =? ???-0.1119??(-0.1624, -0.06134)
p02 =? ?2.36e-006??(-8.72e-007, 5.593e-006)
You also can treat the cfit or sfit object as a function to make predictions or evaluate the fit at values of X (or X and Y). See the cfit and sfit reference page.
*
Save goodness of fit to MATLAB struct named goodness — This option creates a structure array that contains statistical information about the fit, for example:
goodness =
sse: 0.0234
rsquare: 0.9369
dfe: 128
adjrsquare: 0.9345
rmse: 0.0135
*
Save fit output to MATLAB struct named output — This option creates a structure array that contains information such as numbers of observations and parameters, residuals, and so on. For example:
output =
numobs: 134
numparam: 6
residuals: [134x1 double]
Jacobian: [134x6 double]
exitflag: 1
algorithm: 'QR factorization and solve'
iterations: 1
Note? ?Goodness of fit and Output arrays are outputs of the fit function. See the fit reference page.
4.
Click OK to save the fit options to the workspace.
總結
以上是生活随笔為你收集整理的Matlab lowess拟合,matlab拟合出曲面后,还需要对应的公式的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 7月27
- 下一篇: 记录微信wxParse的相关代码