ommiting blanks in code
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
how do i write a code sequence omitting any trailing and leading blanks
0 comentarios
Respuestas (1)
Oleg Komarov
el 23 de Mayo de 2012
Example:
str = ' some blanks here and there ';
str = strtrim(str)
str =
some blanks here and there
str([1,end])
ans =
se
0 comentarios
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!