MATLAB中统计数组,字符串,矩阵中相同元素的个数例子:>>x=[1:102:93:84:75:6];[valcount]=findsame(x)val=12345678910count=1234554321>>x=[1:4;2:5;3:6];[valcount]=findsame(x)val=12345