How to fit a function with two or more dependant variables (outputs)?
15 次查看(过去 30 天)
显示 更早的评论
I have a complex matlab function that takes x -> (y1,y2) based on several passed parameters. I would like to use curve fitting to find the optimal parameters that fit the function to data. Are there any such tools in MATLAB to accomplish this? nlinfit and the others seem to only want to work with a single independant variable column vector and a single dependant variable column vector (i.e. x -> y).
3 个评论
采纳的回答
Matt J
2022-6-2
lsqcurvefit does not care about the dimensionality of the independent or dependant variables.
3 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Least Squares 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!