-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPDBevent.m
More file actions
executable file
·30 lines (27 loc) · 911 Bytes
/
PDBevent.m
File metadata and controls
executable file
·30 lines (27 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
classdef PDBevent < PDBseizure
properties
electrode PDBelectrode
time datetime
end
properties (SetAccess = private, Hidden = true)
end
methods
function obj = PDBevent(patientObj,varargin)
if nargin < 1 || isempty(patientObj)
patientObj = PDBpatient('unknown');
end
obj.patient = patientObj;
allowable = fieldnames(obj);
if mod(length(varargin),2) ~= 0
error('Inputs must be in name, value pairs');
end
for v = 1:2:length(varargin)
if find(ismember(allowable,varargin{v}))
obj.(varargin{v}) = varargin{v+1};
else
disp([9 'Not assigning ''' varargin{v} ''': not a field in PDBevent']);
end
end
end
end
end