Combinining the values from a image
이전 댓글 표시
I have 7 matrix(30x30 in which there are only 3values) ,and i have used tabulate command for finding the percentage so for each matrix i get percentage values such as
50.1%A
31.7%B
18.2%C these 3 for 1st matrix
11.5%A
19.8%B
68.8%C for 2nd matrix and so on
now i want to combine all A's ,B's ,C's if values are sane or +-5,i want to make it as single value instead of many,i want to reduce the number of values
please help
댓글 수: 1
Walter Roberson
2012년 11월 19일
Suppose you have 10 and 14 and 18. Should those all get merged together, even though 10 is more than 5 away from 18 ?
Also, what should the output look like?
답변 (2개)
Matt J
2012년 11월 19일
0 개 추천
HISTC may also be what you want, but it seems like you've already used a similar command to histogram the ABC values. If so, it's not clear what further reduction you're looking for.
댓글 수: 11
kash
2012년 11월 19일
kash
2012년 11월 19일
Walter Roberson
2012년 11월 19일
Suppose you have 10 and 14 and 18. Should those all get merged together, even though 10 is more than 5 away from 18 ?
kash
2012년 11월 19일
kash
2012년 11월 19일
Walter Roberson
2012년 11월 19일
If 10, 14, 18 should all be combined, then the implication is that all groups are potentially combined into a single group even though the top and bottom values might differ substantially. You would allow 1:5:36 to all combine into a single group.
kash
2012년 11월 19일
Walter Roberson
2012년 11월 19일
Your values might all be the same, making it impossible to split them into 3 to 4 groups.
Not enough of your values might be within 5 of each other in order to split into as few as 4 groups.
Pat
2012년 11월 19일
walter same values with difference of + or _ 5 can be made into groups
Pat
2012년 11월 19일
ok walter can we do in this way ,take means of all values so we get seven means values ,then find mean with greater difference and display those 3 values
카테고리
도움말 센터 및 File Exchange에서 Images에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!