how will i arrange the matrix?
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
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 Commenti
Jos (10584)
il 5 Mar 2014
How do you calculate the entropy? And how would you like to arrange a (swap rows only, columns only, or all)?
Roger Stafford
il 5 Mar 2014
Modificato: Roger Stafford
il 5 Mar 2014
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
il 10 Mar 2014
Risposte (1)
David Sanchez
il 5 Mar 2014
Sort you matrix using the built-in function sort:
doc sort
Questa domanda è chiusa.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!