function plotPrePostDaq(obj,fields,tidx) if nargin<3 || isempty(tidx) tidx; %trim sample by 2000 at the start, to avoid looking at effects of intertrial fixation end [pre post] = fin fh = figure; clf(fh); plot(pre(trimmed_sample+1:end)); hold on plot(post(trimmed_sample+1:end),'r'); box off offsetAxes(fh.CurrentAxes) addExportFigToolbar(fh);