Importing epochs (matlab format) through script: how to set epoch and baseline time interval?

Provisionally (but I understand this is not the ideal solution), I am solving this issue by subsequently opening each of the data files within the brainstorm_db folder containing my protocol (also through a script) and changing the 'Time' array you find within them (btw, I am also changing 'nAvg' -number of trials from which each averaged epoch proceeds, necessary for weighted averages-, which I have neither found how to set in the script above.