Dawn@4: function VSData = func_setmatdir(whoami, new_dir, VSData) Dawn@4: % VSData = func_setmatdir(whoami, new_dir, VSData) Dawn@4: % Notes: Conditionally sets the global settings for mat directories Dawn@4: % Dawn@4: % Author: Yen-Liang Shue, Speech Processing and Auditory Perception Laboratory, UCLA Dawn@4: % Copyright UCLA SPAPL 2009 Dawn@4: Dawn@4: if (VSData.vars.linkmatdir) Dawn@4: VSData.vars.matdir = new_dir; Dawn@4: VSData.vars.PD_matdir = new_dir; Dawn@4: VSData.vars.OT_matdir = new_dir; Dawn@4: VSData.vars.OT_EGGdir = new_dir; Dawn@4: VSData.vars.OTE_matdir = new_dir; Dawn@4: VSData.vars.MD_matdir = new_dir; Dawn@4: VSData.vars.OT_Textgriddir = new_dir; Dawn@4: VSData.vars.OT_outputdir = new_dir; Dawn@4: Dawn@4: if (VSData.vars.OTE_saveEMUwithmat) Dawn@4: VSData.vars.OTE_outputdir = new_dir; Dawn@4: end Dawn@4: Dawn@4: else % not linked, just update the requesting function Dawn@4: VSData.vars.(whoami) = new_dir; Dawn@4: end Dawn@4: Dawn@4: Dawn@4: