필터 지우기
필터 지우기

Info

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

how can i store result from loop in a matrix?

조회 수: 1 (최근 30일)
arkedia
arkedia 2014년 12월 15일
마감: MATLAB Answer Bot 2021년 8월 20일
I have the following loop
x = [1 2 3 4 5;4 5 6 8 9;8 7 6 3 1;5 6 7 9 1;6 4 2 9 6]
y=[10 30 24 35 40]'
one=[]
for i=1:5
a=i;
ind=[a]
one=x(:,[i])
[b_LS, sigma_b_LS, s_LS] = lscov(one,y)
s = s_LS
aicx1=size(one,1)*log(s)+2*size(one,2)
end
I want to store result as :
A=[ind;aicx1] for example A=[1 2 3 4 5; 26 34 24 38 25]

답변 (0개)

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

Community Treasure Hunt

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

Start Hunting!

Translated by