Sum specific colums based on a criteria
1 回表示 (過去 30 日間)
古いコメントを表示
Dear all, I have a column matrix A and an nxn matrix B. I have been able to estimate the correlation coefficient (R) between the constant column matrix A and each column vector in matrix B using corr(A,B). However, I am finding difficulties in summing only columns with their R=>0.2, while ignoring columns with R<0.2. I will be very grateful for the assistance.
0 件のコメント
採用された回答
madhan ravi
2019 年 5 月 18 日
編集済み: madhan ravi
2019 年 5 月 18 日
sum(R(:,any(R>=.2)))
3 件のコメント
madhan ravi
2019 年 5 月 19 日
編集済み: madhan ravi
2019 年 5 月 19 日
sum(B(:,any(R>=.2))) % syms B according to R satisfying the condition
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Number Theory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!