How do I extract a portion of a string after a prescribed symbol?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Paul Fishback
il 14 Giu 2017
Commentato: Paul Fishback
il 14 Giu 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 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Characters and Strings in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!