Skip to content

read_namelist_new.m

Basic Information

  SYNTAX:  read_namelist

  PURPOSE:  Read a FORTRAN namelist file and create variables in the
    matlab workspace defined by variables in the namelist.

  INPUT: [default]
    filename = name of namelist file to read
    to_upper = 1;  makes all variables UPPER case [0]
    to_upper =-1;  makes all variables lower case [0]

  OUTPUT:
    varlist = list of variables read from namelist file

    All variables found in namelist(s) within the file are made into
    matlab variables. Duplicate names are overwritten with subsequent data.

  RESTRICTIONS:
    (1) won't work if '=' signs in quotes in any of data
    (2) won't work for multiple (*) string variables

Dependencies