文字列の先頭または末尾の空白(およびタブ)を取り除く
txt = stripblanks(txt[,tabs])
文字列または文字列の行列
論理値, %tの場合タブも削除されます (デフォルト値は %fです).
%t
%f
stripblanks関数は, 文字列の先頭または末尾の空白(およびタブ)を取り除きます.
stripblanks
a=' 123 '; '!'+a+'!' '!'+stripblanks(a)+'!' a=[' 123 ',' xyz'] strcat(stripblanks(a)) a = msprintf("\t \tHello world!\t\t") strcat(stripblanks(a,%f)+'?') strcat(stripblanks(a,%t)+'?')