Storing Data in Vector

Hi
I have an matrix with the occurence of frequency. How can i store the data in vector in ascending Order.

回答 (1 件)

the cyclist
the cyclist 2015 年 11 月 17 日
編集済み: the cyclist 2015 年 11 月 17 日

0 投票

M = [2 3 1;
6 8 4];
sorted_M_vector = sort(M(:));

カテゴリ

ヘルプ センター および File ExchangeShifting and Sorting Matrices についてさらに検索

タグ

質問済み:

2015 年 11 月 17 日

編集済み:

2015 年 11 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by