Reindexing some values in a vector

前端 未结 1 921
南旧
南旧 2021-01-26 17:32

I have this vector of size like 40000 with values like

12312345
4564
122356
3455
34566

There are like only 200 unique values in this vector. So

相关标签:
1条回答
  • 2021-01-26 17:54

    The third output of unique will do that for you!

    [~,~,NewVector]=unique(Vector)
    
    0 讨论(0)
提交回复
热议问题