how to extract n characters from a string ???
Mostra commenti meno recenti
I have a dataset including a variable named "code". I format it as type "character".
This variable contains such observations like G4411, H5551, K9878..
Now I want to extract the first character out of every observation.
This means G4411 --> G, H5551 --> H, K9878 --> K
I have also attached the data file at the end of the post!
Could somebody help me with this problem?
Many Thank and best regard!
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Managing Data in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!