0001 function [obj] = brain_data_new(coord_type, model_name, conductivity)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 const = define_bm_edit_app;
0015
0016
0017
0018
0019 if ~exist('coord_type', 'var')
0020 error('coord_type is a required parameter.');
0021 end
0022 if ~exist('model_name', 'var') || isempty(model_name)
0023 error('model_name is a required parameter.');
0024 end
0025 if ~exist('conductivity', 'var') || isempty(conductivity)
0026 conductivity = const.DEFAULT_CONDUCTIVITY;
0027 end
0028
0029
0030 obj.class_type = 'brain_data';
0031
0032
0033
0034
0035 obj.coord_type = coord_type;
0036 obj.model_name = model_name;
0037 obj.conductivity = conductivity;
0038 obj.history = history_new;
0039
0040
0041
0042
0043 if nargout ~= 1
0044 error('function caller should receive obj.');
0045 end