matlab - Reindexing some values in a vector -


i have vector of size 40000 values like

12312345 4564 122356 3455 34566 

there 200 unique values in vector. want replace these big values numbers 1:200

such smallest vector value replaced 1, next smallest 2 , on 200.

how can in matlab?

the third output of unique you!

[~,~,newvector]=unique(vector) 

Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -