matlab——unique
来源:互联网 发布:天猫店和淘宝店哪个好 编辑:程序博客网 时间:2024/06/11 23:49
格式 b = unique (a) %取集合a的不重复元素构成的向量
b = unique (A,'rows')%返回A、B不同行元素组成的矩阵
[b,i,j] = unique (…)%i体现b中元素在原向量(矩阵a)中的位置;j体现原向量(矩阵a)在b中的位置
例1-39
>> A=[1 1 2 2 4 4 64 6]
A =
1 1 2 24 4 6 46
>> [c,i,j]=unique(A)
c =
1 2 4 6
i =
2 4 8 9%i体现b中元素在原向量(矩阵a)中的位置;
j =
1 1 2 2 3 3 4 34 %j体现原向量(矩阵a)在b中的位置
例1-40
>> A=[1 2 2 4;1 1 4 6;1 1 4 6]
A =
1 2 2 4
1 1 4 6
1 1 4 6
>> [c,i,j]=unique(A,'rows')
c =
1 1 4 6
1 2 2 4
i =
3
1
j =
2
1
1
b = unique (A,'rows')
[b,i,j] = unique (…)
例1-39
>> A=[1 1 2 2 4 4 6
A =
>> [c,i,j]=unique(A)
c =
i =
j =
例1-40
>> A=[1 2 2 4;1 1 4 6;1 1 4 6]
A =
>> [c,i,j]=unique(A,'rows')
c =
i =
j =
- matlab——unique
- matlab unique函数
- matlab之unique函数
- matlab中的unique
- matlab unique函数
- matlab中的unique函数
- matlab unique函数
- matlab unique函数
- matlab unique函数
- $.unique()——JQuery
- LeetCode—Unique Paths
- matlab中的unique函数详解
- leetcode——Unique Paths & Unique PathsⅡ
- LeetCode——Unique Paths
- LeetCode——Unique Paths
- Leetcode——Unique Paths
- LeetCode62——Unique Paths
- LeetCode——Unique Path
- Java对象引用处理机制
- 静态内部类
- 搭建CentOS + Tomcat 中遇到的问题
- Eclipse 与Android 模拟器断开连接
- [0] HUST ACM-ICPC Online Judge
- matlab——unique
- jboss7 ,修改 JVM 可使用内存
- windows 2003 IIS+php环境配置后导致IIS站点均无法访问Service Unavailable
- 初识 Memcached【一】
- 2.26 Enabling Paging with UIPageViewController
- 白话经典算法系列之七 堆与堆排序
- 查看sqlserver被锁的表以及如何解锁.
- 参数传递问题
- 初试 node.js 【一】