stripblanks

stripblanks — strips leading and trailing blanks of strings

Calling sequence

txt=stripblanks(txt)  

Parameters

txt : string or matrix of strings

Description

stripblanks strips leading and trailing blanks of strings

Examples



a='  123   ';
'!'+a+'!'
'!'+stripblanks(a)+'!'
a=['  123   ',' xyz']
strcat(stripblanks(a))