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
M = [2 3 1;
6 8 4];
sorted_M_vector = sort(M(:));

类别

帮助中心File Exchange 中查找有关 Shifting 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