Home > functions > gui > preAnalysis > trial_extractor > vb_timeseries_viewer_set_trial.m

vb_timeseries_viewer_set_trial

PURPOSE ^

set trial data. if you also want to update screen,

SYNOPSIS ^

function [obj] = vb_timeseries_viewer_set_trial(obj, trial_list)

DESCRIPTION ^

 set trial data. if you also want to update screen, 
 call vb_timeseries_viewer_update_trial.
 [USAGE]
    [obj] = vb_timeseries_viewer_set_trial(obj, trial_list);
 [IN]
           obj : vb_timeseries_viewer object.
    trial_list : trial list <<struct list>>
                 trial_list(N).from
                              .to
                              .onset
 [OUT]
    obj : updated vb_timeseries_viewer object.
 [See also]
   vb_timeseries_viewer_update_trial.m

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [obj] = vb_timeseries_viewer_set_trial(obj, trial_list)
0002 % set trial data. if you also want to update screen,
0003 % call vb_timeseries_viewer_update_trial.
0004 % [USAGE]
0005 %    [obj] = vb_timeseries_viewer_set_trial(obj, trial_list);
0006 % [IN]
0007 %           obj : vb_timeseries_viewer object.
0008 %    trial_list : trial list <<struct list>>
0009 %                 trial_list(N).from
0010 %                              .to
0011 %                              .onset
0012 % [OUT]
0013 %    obj : updated vb_timeseries_viewer object.
0014 % [See also]
0015 %   vb_timeseries_viewer_update_trial.m
0016 %
0017 % Copyright (C) 2011, ATR All Rights Reserved.
0018 % License : New BSD License(see VBMEG_LICENSE.txt)
0019 
0020 %
0021 % --- Previous check
0022 %
0023 if ~exist('obj', 'var')
0024     error('obj is a required parameter.');
0025 end
0026 if ~exist('trial_list', 'var')
0027     error('trial_list is a required parameter.');
0028 end
0029 
0030 %
0031 % --- Main Procedure
0032 %
0033 obj.trial_list = trial_list;
0034 
0035 %
0036 % --- After check
0037 %
0038 if nargout ~= 1
0039     error('you should receive updated vb_timeseries_viewer object.');
0040 end

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005