ommiting blanks in code

Asked by lowcalorie on 23 May 2012
Latest activity Answered by Oleg Komarov on 23 May 2012

how do i write a code sequence omitting any trailing and leading blanks

0 Comments

lowcalorie

Tags

Products

No products are associated with this question.

1 Answer

Answer by Oleg Komarov on 23 May 2012

Use strtrim()

Example:

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

0 Comments

Oleg Komarov

Contact us