Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linear Least Squares problem

Status
Not open for further replies.

antiseptic

Bioengineer
Joined
Jan 15, 2003
Messages
11
Location
ES
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top