Skip to content

Commit

Permalink
Merge pull request #306 from VH-Lab/306-add-heterogeneous-mixin-to-el…
Browse files Browse the repository at this point in the history
…ement

Update element - Add Heterogeneous mixin and support 0-argument creation
  • Loading branch information
stevevanhooser authored Dec 18, 2024
2 parents b812145 + e2ef257 commit 5705f29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion +ndi/element.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
classdef element < ndi.ido & ndi.epoch.epochset & ndi.documentservice
classdef element < ndi.ido & ndi.epoch.epochset & ndi.documentservice & matlab.mixin.Heterogeneous
% ndi.element - define or examine a element in the session
%
properties (GetAccess=public, SetAccess=protected)
Expand Down Expand Up @@ -29,6 +29,10 @@
%
set_identifier = 0;

if nargin == 0;
return % Support 0-argument construction
end

needs_newdocument_call = 1;

if numel(varargin)>=6,
Expand Down

0 comments on commit 5705f29

Please sign in to comment.