PDA

查看完整版本 : [求助]matlab中对向量中数据进行排序的命令是什么


chenmatlab
2008-05-05, 21:37
[求助]matlab中对向量中数据进行排序的命令是什么?我在书上没找到

shiqiang
2008-05-05, 22:03
是sort,具体用法你可以help sort

hzxsyzl943
2008-05-06, 12:01
Example: If X = [3 7 5;0 4 2]


then sort(X,1) is [0 4 2 ;3 7 5] and sort(X,2) is [3 5 7; 0 2 4]