0 71.18
0.06 47.00384303
0.1 37.62875959
0.15 33.90441137
0.2 29.05633739
0.25 26.87309878
0.3 24.52932792
0.5 20.96551195
0.7 15.18635092
function [fitresult, gof] = createFit(VarName3, VarName4)
%CREATEFIT(VARNAME3,VARNAME4)
% Create a fit.
%
% Data for 'untitled fit 1' fit:
% X Input : VarName3
% Y Output: VarName4
% Output:
% fitresult : a fit object representing the fit.
% gof : structure with goodness-of fit info.
%
% See also FIT, CFIT, SFIT.
% Auto-generated by MATLAB on 25-Mar-2014 23:07:37
%% Fit: 'untitled fit 1'.
[xData, yData] = prepareCurveData( VarName3, VarName4 );
% Set up fittype and options.
ft = fittype( '71.18-gamma*8.314*(30+273.15)*log(1+K*(x))', 'independent', 'x', 'dependent', 'y' );
% ft = fittype( '71.18-gamma*8.314*(30+273.15)*log(1+K*(x*100))', 'independent', 'x', 'dependent', 'y' );
opts = fitoptions( 'Method', 'NonlinearLeastSquares' );
opts.Display = 'Off';
opts.StartPoint = [0.644318130193692 0.51077156417211];
% Fit model to data.
[fitresult, gof] = fit( xData, yData, ft, opts );
% Plot fit with data.
figure( 'Name', 'untitled fit 1' );
h = plot( fitresult, xData, yData );
% legend( h, 'VarName4 vs. VarName3', 'untitled fit 1', 'Location', 'NorthEast' );
% Label axes
xlabel( 'c' );
ylabel( '\sigma' );
grid on
结果:
>> createFit(VarName3, VarName4)
ans =
General model:
ans(x) = 71.18-gamma*8.314*(30+273.15)*log(1+K*(x))
Coefficients (with 95% confidence bounds):
K = 117.3 (54.14, 180.5)
gamma = 0.005053 (0.004282, 0.005824)
参考:
Matlab求拟合曲线上一点的坐标值 - MATLAB 基础讨论 - MATLAB中文论坛 - Powered by Discuz!
http://www.ilovematlab.cn/thread-71686-1-1.html
MATLAB曲线拟合_百度文库
http://wenku.baidu.com/link?url=5q_y40T1azSgoJOspQDMNfgxLHxone3nfx50HzzMwy1TPybKXEjuZJZskiiWu4Jp9c287Vuu3KU2G8bK2Zz4yZn6MxGIx-EMY7Lov9ueyDa
用MATLAB画孤立点拟合出的曲线切线_百度知道
http://zhidao.baidu.com/link?url=3wf5VM2_-_jY7c2r-0TeDU_x2tPvbMuBLgx_nCmO3jNFyVNNnJHhXhF6IIKCw83wpEeujWWa3HpIC-SMVQtw9_
基于MATLAB的非线性曲线拟合_百度文库
http://wenku.baidu.com/view/2fd4e980d4d8d15abe234ed3.html
拟合优度_百度文库
http://wenku.baidu.com/link?url=uLkW62Ke0et6ZrTZ1cczvFpL06_ncP-dYyePPlszX1DQVj_N-591scTJSAqHr6SffL7CMlZuOPynKDbTd9rDpu5_6Y5YTq7nYSyN-pJHzXa
怎么计算浓度百分比_百度知道
http://zhidao.baidu.com/link?url=7UbaQkEKbhke--rM0VkNK_d16VXEYQMl2tl9Y0Y2Onq27gz4ydkPydcYafcNrRBj_pQp53JJdndSM4R5eWHXgK
溶液中的吸附作用和表面张力的测定—最大气泡压力法【毕业论文,绝对精品】 - 毕业设计 - 道客巴巴
http://www.doc88.com/p-677853601548.html