MATLAB Function Reference Previous page   Next Page
deblank

Strip trailing blanks from end of string

Syntax

Description

str = deblank(str) removes the trailing blanks from the end of a character string str.

c = deblank(c), when c is a cell array of strings, applies deblank to each element of c.

The deblank function is useful for cleaning up the rows of a character array.

Examples


Previous page  deal debug Next page

© 1994-2005 The MathWorks, Inc.