ommiting blanks in code
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
how do i write a code sequence omitting any trailing and leading blanks
0 Kommentare
Antworten (1)
Oleg Komarov
am 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 Kommentare
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!