How to select the first letter of every word
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Krish Desai
le 5 Déc 2015
Commenté : Krish Desai
le 10 Déc 2015
I have no idea how I would go about doing this
Input: I like eating pizza Output: Ilep
0 commentaires
Réponse acceptée
Mohammad Abouali
le 5 Déc 2015
Modifié(e) : Mohammad Abouali
le 5 Déc 2015
str='I like eating pizza';
str2=cellfun(@(c) c(1),strsplit(str))
6 commentaires
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!