Finding proportional columns in matrix
问题 I have a big matrix (1,000 rows and 50,000 columns). I know some columns are correlated (the rank is only 100) and I suspect some columns are even proportional. How can I find such proportional columns? (one way would be looping corr(M(:,j),M(:,k)) ), but is there anything more efficient? 回答1: If you normalize each column by dividing by its maximum, proportionality becomes equality. This makes the problem easier. Now, to test for equality you can use a single (outer) loop over columns; the