Skip to content

Commit 33e5b10

Browse files
committed
workaround R2021a table bug
1 parent a72054f commit 33e5b10

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

+stdlib/allToolboxes.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55

66
tbx = com.mathworks.product.util.ProductIdentifier.values; %#ok<JAPIMATHWORKS>
77

8-
names = table(Size=[numel(tbx), 2], VariableTypes=["string", "string"], VariableNames=["product", "license"]);
9-
8+
% R2021a has a bug that requires the comma-separated syntax
9+
names = table('Size', [numel(tbx), 2], ...
10+
'VariableTypes',["string", "string"], ...
11+
'VariableNames',["product", "license"]);
1012
names.product = string(tbx);
1113

1214
for i = 1:numel(tbx)

0 commit comments

Comments
 (0)