How can I separate data by keeping the first 3 digits the same?

1 Ansicht (letzte 30 Tage)
Katrin Kamp
Katrin Kamp am 30 Okt. 2017
Bearbeitet: Walter Roberson am 31 Okt. 2017
I have a big data file which has many variables. One of them is the userIdName ( the users name) . The first 3 digits are the same, and in the 4th digit the userIdName changes, for example 1001001,1001002,1001003 belong to the same userid , but 1002001 is a different userIdName. I have almost 100000 of those numbers and I want to find how many userIdNames I have. How can I do that? Shall I use For Loop?
  4 Kommentare

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Data Type Identification finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by