calculating the percentage and displaying
이전 댓글 표시
I have a 256*256 matrix consisting of ones and two's for example i have a 4x4matrix
A=[1 2 2 1
1 2 1 1
2 2 2 1
1 1 1 1 ]
in the A matrix i want to calculate the percentage of ones and two's
i have 10 number of 1's (10/16*100) so i want to display as
62.5% same_value
37.5%others
please help
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!