How can i change the positions of numbers in a matrix
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a 100x7 matrix consisting of random numbers between 0 and 0.5
How can i change the positions of the numbers so that all the zeros are together?
0 commentaires
Réponses (1)
KALYAN ACHARJYA
le 3 Avr 2020
sort the matrix, you will get all rows at initails of rows numbers
sort(matrix)
0 commentaires
Voir également
Catégories
En savoir plus sur Shifting and Sorting Matrices dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!