From: Mohammad on 12 Aug 2010 02:05 So I have a loop to generate values in a Matrix Star, but my loop isn't exactly doing what I'm asking, so I think it may need an easy fix. (I'll show the loop, and I'm pretty sure of what needs fixing...) ....(previous stuff) for i = 1:r for g = 1:i-1 Monstar(1,i)=(Hat(i,end)-Hat(i,g)*Monstar(1,g))/Hat(i,i); end end .... Basically, I want for any value Monstar(1,i) = (Hat(i:end)-Hat(i,i-1)*Monstar(1,i-1)-Hat(i,i-2)*Monstar(1,i-2)-Hat(i,i-3)*Monstar(1,i-3)-Hat(i,i-4)*Monstar(1,i-4)...-Hat(i,i-i+2)*Monstar(1,i-i+2)-Hat(i,i-i+1)*Monstar(1,i-i+1)) / Hat(i,i) Thanks for any potential help :) Cordially, Mohammad
|
Pages: 1 Prev: seprate the result from one colum to different colums Next: image fusion using PCA |