N-dimension curve fit how to

12 ビュー (過去 30 日間)
Adam
Adam 2024 年 9 月 14 日
編集済み: Matt J 2024 年 9 月 15 日
Can someone please walk me through how to do a polynomial curve fit to n-dimensional data? For example: I have a 3D matrix t = [i x j x k] of results for all combinations of 3 different variables x = [i x 1], y = [j x 1], and z = [k x 1], and we know it follows a polynomial fit (e.g. x = 4th order, y = 2nd order, and z = 2nd order). How do I set up the problem, define the fit equation, and find the fit parameters?

回答 (2 件)

Steven Lord
Steven Lord 2024 年 9 月 14 日
See the Multiple Regression section on this documentation page. While that example only uses the first power of each of the variables x1 and x2 in the creation of the X coefficient matrix, you could use terms like x1.^2 and/or x1.*x2.^3 to create additional columns.
  1 件のコメント
Adam
Adam 2024 年 9 月 15 日
It seems like the solution shown in that doc is only for a single coefficient linear equation. How do you extend that to multi-order polynomial fit?

サインインしてコメントする。


Matt J
Matt J 2024 年 9 月 15 日
編集済み: Matt J 2024 年 9 月 15 日

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by