在matlab中怎样求一个矩阵中不同元素个数

如题所述

用自带得unique函数
>> unique([1 2 3 5 2 3 5 3 2])
ans =
1 2 3 5
温馨提示:答案为网友推荐,仅供参考
相似回答