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...