Extracting data from a matrix for a particular threshold
이전 댓글 표시
Hi,
I have a data matrix (442 x 442) which represents pairwise correlations (Cij). I have values from -1 to 1 and I would like to identify the rows and columns with values greater than 0.6 and also less than -0.6. I've tried a few solutions but I'm not having any luck.
Any form of guidance will be much appreciated.
Thank you,
Akash
답변 (1개)
Read about find
idx = A>0.6 | A<-0.6 ;
댓글 수: 2
Akash Pandya
2019년 2월 27일
KSSV
2019년 2월 27일
you can extract the respective values using A(idx) . if you want indices use find(idx). They are logicals.
카테고리
도움말 센터 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!