ommiting blanks in code
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how do i write a code sequence omitting any trailing and leading blanks
0 commentaires
Réponses (1)
Oleg Komarov
le 23 Mai 2012
Example:
str = ' some blanks here and there ';
str = strtrim(str)
str =
some blanks here and there
str([1,end])
ans =
se
0 commentaires
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!