How to create a convext combination of column vectors?
1 view (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Walter Roberson
on 20 Sep 2017
See https://www.mathworks.com/matlabcentral/answers/77363-very-high-dimensional-convex-hulls#answer_87020 for generating multiple rows of convex combinations
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)
0 Comments
See Also
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!