Finding connection between elements of an array
이전 댓글 표시
Hi,
I have an array,
A = [1 3 5 7 2 4 9 3;
2 2 7 5 3 8 10 2];
I want to know the number of connection between elements considering both rows.
For example, 2 is connected with 1 and 3 if I consider row-wise relation. So, number of connection for 2 is = 2. And, similarly, number of connection for 7 is = 1.
How can I know that number for all elements.
Thanks in advance.
댓글 수: 4
Image Analyst
2014년 11월 20일
If 2 is connected to 1 and 3 above it, then why is 7 in the bottom row not connected to 3 and 5 above it? And what's the definition of "row-wise relation"?
Majbah
2014년 11월 20일
Image Analyst
2014년 11월 21일
Majbah
2014년 11월 21일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Texture Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!