Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock 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
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor