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
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 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!