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

답변 (1개)

John D'Errico
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.

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by