Skip to content

getexperimentfile

   [P, expf] = GETEXPERIMENTFILE(MYDIRSTRUCT [, CREATEIT] )

   Returns the experiment data filename for the directories associated with
   DIRSTRUCT.  If CREATEIT is present and is 1, then the file is 
   created if it does not already exist.

   EXPF is the name of the experiment, taken from the last directory in the
   pathname.

   If the original pathname associated with MYDIRSTRUCT does not exist,
   then the function returns [].

   See also:  DIRSTRUCT