How to select k elements from two vectors of length n > k that maximize the correlation between the two vectors?
2 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
I have two numerical column vectors of length n, say vector A and vector B.
Consider a third column vector C which has k < n values equal to one, and zero otherwise.
I want C such that (A.*C)'*(B.*C) is maximized.
In other words, I need to decide which rows of A and B needs to remain (k of them needs to remain, n-k needs to me removed) to maximize the correlation between the vectors A and B. (In this sense, C can also be logical, 1 if row is in, zero if row is out)
Can you please help me to implement this maximization?
Many thanks for your help,
Marco
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Quadratic Programming and Cone Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!