Fitting a specific linear function to data
1 次查看(过去 30 天)
显示 更早的评论
I have some data to which I want to fit the following function:
c1 * X + c2 * Y
I know the values for X and Y, can you give me a hint as to how I should proceed?
2 个评论
John D'Errico
2021-6-12
Do you have the curve fitting toolbox? Do you have the stats toolbox? I ask that, because while the fit itself is trivial, your immediate next question will be how to you determine the uncertainties for those parameters, and those toolboxes will do it for you.
回答(1 个)
Tarunbir Gambhir
2021-6-15
You can launch the Curve Fitting Tool with 'cftool( x, y, z )' for your case. This will create a surface fit to x and y inputs and z output.
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!