ommiting blanks in code

Respuestas (1)

Oleg Komarov
Oleg Komarov el 23 de Mayo de 2012

1 voto

Example:
str = ' some blanks here and there ';
str = strtrim(str)
str =
some blanks here and there
str([1,end])
ans =
se

Categorías

Etiquetas

Preguntada:

el 23 de Mayo de 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by