How to create a convext combination of column vectors?

1 view (last 30 days)

Hi everyone, say I generate a matrix X as such:

       X = eye(n);

How could I create a convex combination of the column vectors of this matrix X? Thanks in advance.

Answers (1)

Walter Roberson
Walter Roberson on 20 Sep 2017
I am not clear, though, whether are definitely working with an identity matrix like eye (or at least a permutation matrix), or whether you an arbitrary matrix is input and the various columns have to be scaled so that the sum of each column along the rows has to equal one? If so you would not generally be able to do that by a per-column scale and would more generally need a complete matrix of values A such that all(sum(A*X,2) == 1)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!