How do I extract a portion of a string after a prescribed symbol?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Paul Fishback
le 14 Juin 2017
Commenté : Paul Fishback
le 14 Juin 2017
I have a string of the form
mystring='C\users\me\data\mymatrix.mat'
What operation will permit me to create the string consisting of all characters before the last '\'. In other words, what operation will yield the string
'C\users\me\data' ?
Perhaps the command strsplit could be used in some manner?
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Characters and Strings dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!