Home > vbmeg > functions > gui > preAnalysis > meeg_processor > signal_processor > vb_signal_processor_remove_parm_from_processlist.m

vb_signal_processor_remove_parm_from_processlist

PURPOSE ^

Remove processing tool from processinglist.

SYNOPSIS ^

function data = vb_signal_processor_remove_parm_from_processlist(data, nth)

DESCRIPTION ^

 Remove processing tool from processinglist.
 [USAGE]
    data = vb_signal_processor_remove_parm_from_processlist(data, nth);
 [IN]
   data : Application data.
    nth : Nth item in processlist.
 [OUT]
    data : Updated application data.

 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 data = vb_signal_processor_remove_parm_from_processlist(data, nth)
0002 % Remove processing tool from processinglist.
0003 % [USAGE]
0004 %    data = vb_signal_processor_remove_parm_from_processlist(data, nth);
0005 % [IN]
0006 %   data : Application data.
0007 %    nth : Nth item in processlist.
0008 % [OUT]
0009 %    data : Updated application data.
0010 %
0011 % Copyright (C) 2011, ATR All Rights Reserved.
0012 % License : New BSD License(see VBMEG_LICENSE.txt)
0013 
0014 %
0015 % --- Previous check
0016 %
0017 if ~exist('data', 'var')
0018     error('data is a required parameter.');
0019 end
0020 if ~exist('nth', 'var')
0021     error('nth is a required parameter.');
0022 end
0023 
0024 %
0025 % --- Main Procedure
0026 %
0027 Ntool = length(data.process_list);
0028 if Ntool < nth
0029     error('Inconsistent data status (processing list and selected item).');
0030 end
0031 
0032 % Remove
0033 data.process_list(nth) = [];
0034 
0035 %
0036 % --- After check
0037 %
0038 if nargout ~= 1
0039     error('function caller should receive data object.');
0040 end

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005