Skip to content

Commit 6e0938c

Browse files
committed
Update mapData2H5.m
1 parent 806b67d commit 6e0938c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

+io/mapData2H5.m

+7
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@
1313
|| all(cellfun('isclass', data, 'string')) ...
1414
, 'NWB:MapData:NonCellStr', ['Cell arrays must be cell arrays of character vectors. ' ...
1515
'Cell arrays of other types are not supported.']);
16+
elseif isstring(data)
17+
if isscalar(data)
18+
data = char(data);
19+
else
20+
data = cellstr(data);
21+
end
1622
end
23+
1724
tid = io.getBaseType(class(data));
1825

1926
% max size is always unlimited

0 commit comments

Comments
 (0)