antiseptic
Bioengineer
- Jan 15, 2003
- 11
hi all
i am trying to minimize some matrix H using lsqnonneg (linear least square with non negativity constraint)
however, lsqnonneg accepts only vectors as inputs, not matrices, so i am forced to do this
for i=1:size(V,2)
H,i) = lsqnonneg(-W, -V,i))
end
this is extremely time consuming, i wish i could do some thing like
H = lsqnonneg(-W, -V) so it d do the iteration faster
but lsqnonneg wont let me
is there any way to avoid the "for" or i am doomed to spend the next week waiting till it converges
regards
i am trying to minimize some matrix H using lsqnonneg (linear least square with non negativity constraint)
however, lsqnonneg accepts only vectors as inputs, not matrices, so i am forced to do this
for i=1:size(V,2)
H,i) = lsqnonneg(-W, -V,i))
end
this is extremely time consuming, i wish i could do some thing like
H = lsqnonneg(-W, -V) so it d do the iteration faster
but lsqnonneg wont let me
is there any way to avoid the "for" or i am doomed to spend the next week waiting till it converges
regards