I want to solve xA=b with constraint 0<=x for x.
xA=b
0<=x
x
I found functions like lsqnonneg and lsqlin which solves for Ax=b
Ax=b
As David commented, it is straightforward to show that
so you can use standard methods to solve the problem with A' and b' and then transpose the answer.