@docfiller
def whosmat(file_name, appendmat=True, **kwargs):
 ML = mat_reader_factory(file_name, **kwargs)
 variables = ML.list_variables()
 if isinstance(file_name, string_types):
  ML.mat_stream.close()
 return variables

@ docfiller def whosmat ( file_name , appendmat = True , ** kwargs ) : ML = mat_reader_factory ( file_name , ** kwargs ) variables = ML . list_variables ( ) if isinstance ( file_name , string_types ) : ML . mat_stream . close ( ) return variables
list variables inside a matlab file .