matlab sortrows函数 对行进行排序
来源:互联网 发布:华三交换机端口配置 编辑:程序博客网 时间:2024/06/06 07:14
用法:
B = sortrows(A)
B = sortrows(A, column)
第一种和第二种用法的区别在于,sortrows(A)将类似按照字典序排列,而指定了column时,各行只根据指定列为标准来排序,不考虑其他列的顺序问题。
[B, index] = sortrows(A)
这一用法同时返回一个索引向量。为对应行之前的行号
示例:
>> a=magic(3)
a =
>> sortrows(a)
ans =
>> [s,ix]=sortrows(a,3)
s =
ix =
0 0
- matlab sortrows函数 对行进行排序
- matlab sort() 排序函数…
- Matlab sortrows函数
- matlab dist函数 …
- 【MATLAB】matlab eig 函数…
- matlab 常用函数
- MATLAB中的eye() 函数 …
- MATLAB fgoalattain()函数 解…
- MATLAB std() 标准偏差函数
- Matlab dlmwrite函数 将…
- matlab lsqcurvefit函数&nbsp…
- MATLAB中的 sign() 符号函数
- matlab newlvq函数 建立…
- matlab linkage函数 计…
- matlab factoran 因子分析函数
- matlab regress函数 最…
- matlab classify 线性判别分析函数
- matlab exprnd函数 生成…
- matlab 曲线拟合工具箱 cftool
- 编译报错:Apple Mach-O Linker Error Group
- matlab interp 各种插值函数
- XStream解析
- matlab var函数 求样本…
- matlab sortrows函数 对行进行排序
- matlab histc函数 数值…
- Unity 网格合并
- Matlab中几个数值积分函数的比较和…
- 差分运算
- matlab quiver函数 使用…
- Android 轻松实现生命周期绑定
- matlab ezplot3 绘制三维函数图
- 任意行列二维数组C语言实现