I have an input matrix of 17X4 and output matrix of 17X8, is there any method to fit regression with these many input and outputs together?
1 回表示 (過去 30 日間)
古いコメントを表示
A problem with multiple input and multiple output regression
0 件のコメント
回答 (1 件)
John D'Errico
2016 年 12 月 9 日
Can you solve the problem with 4 inputs and 1 output? I hope so. Just use backslash.
Then solve it 8 times. WTP? Loops are not always a bad thing.
In fact, backslash is effectively vectorized for you already, in that
coefs = inputs\outputs;
actually solves the problem you asked about.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Linear Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!