Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Y vector line per line regression on a X matrix

조회 수: 1 (최근 30일)
abdoulaye thiam
abdoulaye thiam 2014년 2월 10일
마감: MATLAB Answer Bot 2021년 8월 20일
I have dependent variable is return(1,129), and the independant variable is index(129,7). So I am trying to do an optimization with the coefficients staying positive and summing to 1. That's why I am using the lsqlin solver. However I want to have a matrix of coefficient with size(129,7). what king loop can write to have a line per line regression. here is the code for my optimization
G= lsqlin(index,return,[],[],ones(1,7),1,zeros(1,7),ones(1,7)) Any help would be greatly appreciated!

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by