フィルターのクリア

Sorting

5 ビュー (過去 30 日間)
Edward
Edward 2012 年 5 月 26 日
Hi, im having a problem sorting
I have a matrix with two columns, column one is the data i need sorting in numerical order, but the second column is frequency data so i dont want that sorted, but i need the frequencies to remain with the column one data..
Using sort(X) sorts both columns, how can i get around this?

採用された回答

Image Analyst
Image Analyst 2012 年 5 月 26 日
Use the sortrows() function instead.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by