Simultaneously fit multiple datasets

Hi, I know that there is different solution on this topic out there but none that I have found helpful. Hence, my question is how to I fit several data sets simultaneously?
I have vectors x1, y1 and z1 which corresponds to several points (x,y,z). I have several of these vectors i.e. (x2,y2,z2), (x3,y3,z3) and so on. Each of these sets corresponds to points on a line along a surface. My objective is to fit all of this points so that I could get an analytical expression of the surface. Hence, I need to figure out how one would fit multiple sets of data at the same time.

回答 (1 件)

Vandana Ravichandran
Vandana Ravichandran 2017 年 4 月 13 日

2 投票

You can combine the multiple dataset vectors into a single large dataset [X Y Z] where X = [x1 x2 ..] Y = [y1 y2 ..] and so on. You can use the "fit" function from the Curve Fitting Toolbox to fit a surface to your data based on a model type. Refer this page from documentation for more on "fit":

カテゴリ

ヘルプ センター および File ExchangeLinear and Nonlinear Regression についてさらに検索

製品

タグ

質問済み:

2017 年 4 月 11 日

回答済み:

2017 年 4 月 13 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by