On 11/21/2012 5:58 PM, zuzia wrote:
...[top posting repaired--please don't do that--hard follow conversation
makes]...
I don't see how. You've got nXm coefficients to determine from only n+m
equations.
As for the above, you can write it as
B=A./repmat(sum(A),size(A,1),1); % columns
B=A./repmat(sum(A,2),1,size(A,2)); % columns
I'm still not clear on what you really mean w/ "not all simultaneously"
and then "applying both together". It seems to be s dichotomy.
But if you mean just one row/column pair at a time, consider a 2x2
example. You'd have
x(1,1)*w(1,1)+x(2,1)*w(2,1)=1 % 1st column
x(1,1)*w(1,1)+x(1,2)*w(1,2)=1 % 1st row
That's determining three unknown weights w/ only two equations and as
the array gets larger you add more weights but no more constraints.
--