Fit of groups of data
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I have two groups of data. Both of them have the same x-axis but differ in y-axis. I want to to solve an equation that depend on these two groups of data.
The x-axis is representing time x=[1; 2; 3; 4; 5; 10; 15; 30; 45; 60; 90]
and y-axis for the first group is: y1=[56.88; 62.75; 87.07; 114.54; 139.14; 177.24; 216.39; 285.77; 399.99; 357.28; 359.53]
and y-axis for the second group is: y2=[353.64; 343.60; 303.67; 312.73; 328.91; 306.76; 299.97; 259.01; 222.10; 190.04; 228.87]
Here is my equation: y1/(y1+y2)=[k1/(k1+k2)]*{1-exp[-(k1+k2)*t]}
Note: all the equation parameters are known except k1 and k2.
How can I find them by fitting the data please?
采纳的回答
the cyclist
2013-8-22
If you have the Statistics Toolbox, I think the nlinfit() function will do what you need: http://www.mathworks.com/help/stats/nlinfit.html
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!