pb_dataobj.m 1.64 KB
Newer Older
Jesse Heckman's avatar
Jesse Heckman committed
1 2 3 4
classdef pb_dataobj < handle
% PB_DATAOBJ()
%
% PB_VCREATEDAT()  ...
Jesse Heckman's avatar
Jesse Heckman committed
5
%d
Jesse Heckman's avatar
Jesse Heckman committed
6 7 8 9 10 11 12 13 14
% See also ...

% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
    
    properties (Access=public)
       vestibular_signal = [];
       event_data = [];
       pupil_labs = [];
       optitrack = [];
15
       sensehat = [];
Jesse Heckman's avatar
Jesse Heckman committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
       block_info = [];
    end

    methods
        function obj = pb_dataobj(n)
            % constructor            
            if nargin ~= 0 
                if nargin < 1
                    n = 1;
                end
                obj(n,1) = pb_dataobj; % Preallocate object array
            end
        end

        function delete(obj)
            % DELETE - destructor
            delete(obj);
        end
Jesse Heckman's avatar
Jesse Heckman committed
34 35 36 37 38 39 40 41 42 43 44 45
        
%         function split(obj)
%            if size(obj)>1
%               cdir = '~/Desktop/';
%               path = pb_getdir('cdir',cdir);
%               if path
%                  for i = 1:length(obj)
%                     save([],obj(i))
%                  end
%               end
%            end 
%         end
Jesse Heckman's avatar
Jesse Heckman committed
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
                
        function dump(this)
            % DUMP - show the content of the internal variables
            this.vestibular_signal
            this.event_data
            this.pupil_labs 
            this.block_info
        end
    end
end
 
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % 
%                                                           %
%       Part of Programmeer Beer Toolbox (PBToolbox)        %
%       Written by: Jesse J. Heckman (2018)                 %
%                                                           %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %