Skip to content

Commit 6dde565

Browse files
committed
add missing TimeUnit
1 parent 0b95152 commit 6dde565

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jsnirfcreate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
% option (optional): option can be ignored. If it is a string with a
1616
% value 'snirf', this creates a default SNIRF data structure;
1717
% otherwise, a JSNIRF data structure is created.
18-
% format: save as option.
18+
% format: same as option.
1919
% param/value: a list of name/value pairs specify
2020
% additional subfields to be stored under the /nirs object.
2121
%
@@ -33,7 +33,7 @@
3333
% define empty SNIRF data structure with all required fields
3434

3535
defaultmeta=struct('SubjectID','default','MeasurementDate',datestr(now,29),...
36-
'MeasurementTime',datestr(now,'hh:mm:ss'),'LengthUnit','mm');
36+
'MeasurementTime',datestr(now,'hh:mm:ss'),'LengthUnit','mm', 'TimeUnit','s');
3737
defaultsrcmap=struct('sourceIndex',[],'detectorIndex',[],...
3838
'wavelengthIndex',[],'dataType',1,'dataTypeIndex',1);
3939
defaultdata=struct('dataTimeSeries',[],'time',[],'measurementList',defaultsrcmap);

0 commit comments

Comments
 (0)