Fitting multiple dependent and independent variables

5 ビュー (過去 30 日間)
David
David 2016 年 3 月 24 日
回答済み: the cyclist 2016 年 3 月 24 日
I'm trying to fit data of the form [u; v] = [Gux Guy; Gvx Gvy]*[x; y]. I know the values of my independent variables x & y, as well as the values of the dependent variables u & v. I'll typically have 8 sets of data with one value each for u, v, x, and y. I want to find the values of the G matrix elements that give the closest match of u & v to the 8 values I have for each of them. the default fit function only works for a single dependent variable, unfortunately. Is there another function that will accept two dependent variables (and two independent variables) for fitting?

採用された回答

the cyclist
the cyclist 2016 年 3 月 24 日
Yes, you can use the mvregress command.
The syntax is a bit tricky. Be sure to read the documentation carefully. Also, my answer here gives another example.

その他の回答 (0 件)

カテゴリ

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