% if glm is a GLM object, first get a variable that's the struct study = glm.Study; % then do the access vtcs = {study.NameOfAnalyzedFile};