Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how will i arrange the matrix?

조회 수: 3 (최근 30일)
Anusha
Anusha 2014년 3월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
a=[4 6 4; 3 7 9; 3 0 1; 4 7 9;0 1 3]
The entropy value is 0.5665
I want to reduce the entropy after arranging the a?
  댓글 수: 3
Roger Stafford
Roger Stafford 2014년 3월 5일
편집: Roger Stafford 2014년 3월 5일
No matter what base is used for the logarithm, the entropy I compute for your matrix does not come out as 0.5665 . Moreover, the computed entropy is always independent of how the matrix may be rearranged. For that reason it is important that you tell us what definition you use in computing the entropy of such a matrix that makes it dependent on arrangement.
Anusha
Anusha 2014년 3월 10일
just execute the command
entropy(a) in workspace

답변 (1개)

David Sanchez
David Sanchez 2014년 3월 5일
Sort you matrix using the built-in function sort:
doc sort

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by