Language Reference

NLENG Function

finds the size of an element

NLENG( matrix)

where matrix is a numeric or character matrix.

The NLENG function returns a single numeric value that is the size in bytes of each element in matrix. All matrix elements have the same size. If the matrix does not have a value, then the NLENG function returns a value of 0. This function is different from the LENGTH function, which returns the size of each element of a character matrix, omitting the trailing blanks.

The following statement returns the value 7:

  
    a=nleng({"ab " "ijklm  ", 
             "x"   " "});
 


Previous Page | Next Page | Top of Page