Inserting one character many times into a string
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
David Gottesman
le 27 Déc 2016
Modifié(e) : Stephen23
le 27 Déc 2016
I have a string with a bunch of words separated by commas
S='Apples,Oranges,January,February,...'
I get a vector with the placement of all the commas with
commas=strfind(s,',');
how do i place a character before every comma in the string, so it will come out like
Snew='Apples2,Oranges2,January2,February2,...'
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
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!