Commit d8415165 authored by sstucker's avatar sstucker
Browse files

SnirfClass now imports stim values of >0, -1, and -2 from nirs s matrix....

SnirfClass now imports stim values of >0, -1, and -2 from nirs s matrix. Previously only values of 1 were imported
parent d083720d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -47,8 +47,8 @@ classdef StimClass < FileLoadSaveClass
                t        = varargin{2};
                CondName = varargin{3};
                obj.name = CondName;
                k = s>0;
                obj.data = [t(k), 5*ones(length(t(k)),1), ones(length(t(k)),1)];
                k = s>0 | s==-1 | s==-2;  % Include stim marks with these values
                obj.data = [t(k), 5*ones(length(t(k)),1), s(k)];
            elseif nargin==0
                obj.name = '';
                obj.data = [];