Extracting the numeric part from a cell
Afficher commentaires plus anciens
Hi everyone,
I have a column string in this format
"injection-0:94577)"
"injection-0:94578)"
"injection-0:94579)"
"injection-0:94580)"
"injection-0:94581)"
"injection-0:94582)"
"injection-0:94583)"
I want to extract the numeric part that starts with 9 like 94577 from roow one for instance. Can anyone help please? Thank you.
Réponse acceptée
Plus de réponses (1)
per isakson
le 17 Nov 2021
Try
>> extractBetween( "injection-0:94582)", ":", ")" )
ans =
"94582"
1 commentaire
Mahdi Khademishamami
le 17 Nov 2021
Catégories
En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!