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

2 visualizaciones (últimos 30 días)
Katrin Kamp
Katrin Kamp el 30 de Oct. de 2017
Editada: Walter Roberson el 31 de Oct. de 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 comentarios

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Data Type Identification en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by