How can i change the positions of numbers in a matrix
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
KALYAN ACHARJYA
2020 年 4 月 3 日
sort the matrix, you will get all rows at initails of rows numbers
sort(matrix)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Shifting and Sorting Matrices についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!