摘要:
对于一个向量,使用unique去重后会自动排序,为了保持原顺序:A = [5,1,8,5,2,8,3,9,6,1];[i,j] = unique(A,'first');B = A(sort(j));----------------------------------------B = [5,1,8,2,3,9,6] 阅读全文
posted @ 2014-01-08 17:08
ChasingSunrise
阅读(1401)
评论(0)
推荐(0)
浙公网安备 33010602011771号