Feeds
질문
How can I calculate the iteration using the for loop function and store all iteration outputs in matrix for the big data array? Somebody please help me. Thank you.
load metals X= (tspec)';% size X=16 x 1301 double [m,n] = size(X); mx = mean(X); x = (X-mx(on...
10년 초과 전 | 답변 수: 0 | 0
0
답변질문
I got this error message 'Subscripted assignment dimension mismatch'
x=rand(16,1301); y=rand(16,4); k=0:0.01:1; I=eye(size(x'*x)); b=zeros(size(x'*x)); for j=1:length(k) b(:...
10년 초과 전 | 답변 수: 1 | 0
1
답변질문
I need to calculate matrix b for each iteration from k value 0 to 1 with the step size of 0.01. How can I calculate the iteration using the for loop function and store all iteration outputs in matrix? Somebody please help me. Thank you.
load acetylene X= [x1,x2,x3]; k =1; I=eye(size(X'*X)); b=((inv(X'*X+k*I))*X')*y; for i=0:0....
10년 초과 전 | 답변 수: 2 | 0
