Skip to content

strarr_to_cellarr.m

Basic Information

  SYNTAX:  cellarr = strarr_to_cellarr(strarr)

  PURPOSE:  Convert string array with multiple strings on each line, delimited
    by spaces or tabs, to cell array.

  INPUT:
     strarr = either a string array or (an integer) file id corresponding to
        a data file (open for reading) containing the string array.

  OUTPUT:
     cellarr = cell array containing strings defined by strarr

Dependencies