文件名称:repval
介绍说明--下载内容来自于网络,使用问题请自行百度
repval(X) finds all repeated values for input X, and their attributes.
-The input may be vector, matrix, char string, or cell of strings
Y=repval(X) returns the repeated values of X
[RV, NR, POS, IR]=repval(X) returns the following outputs
RV : Repeated Values (sorted)
NR : Number of times each RV was repeated
POS : Position vector of X of RV entries
IR : Index of repetition
Example:
X=[1 5 5 9 5 5 1]
[RV,NR,POS,IR]=repval(X)
Output:
RV = [1 5] Numbers 1 and 5 are repeated values
NR = [2 4] Respectively repeated 2 and 4 times
POS = [1 7 2 3 5 6] Position index of X for repeated values
IR = [1 1 2 2 2 2] Corresponding to which index of RV
-The input may be vector, matrix, char string, or cell of strings
Y=repval(X) returns the repeated values of X
[RV, NR, POS, IR]=repval(X) returns the following outputs
RV : Repeated Values (sorted)
NR : Number of times each RV was repeated
POS : Position vector of X of RV entries
IR : Index of repetition
Example:
X=[1 5 5 9 5 5 1]
[RV,NR,POS,IR]=repval(X)
Output:
RV = [1 5] Numbers 1 and 5 are repeated values
NR = [2 4] Respectively repeated 2 and 4 times
POS = [1 7 2 3 5 6] Position index of X for repeated values
IR = [1 1 2 2 2 2] Corresponding to which index of RV
(系统自动生成,下载前可以参看下载内容)
下载文件列表
license.txt
repval.m
repval.m
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.