Skip to content

Commit a1e8d35

Browse files
committed
doc [skip ci]
1 parent 4509bb9 commit a1e8d35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

+stdlib/private/strlength.m

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
L = length(s);
1111
elseif isstring(s)
1212
L = builtin('strlength', char(s));
13+
% bug in Matlab at least through R2025a confirmed by Xinyue Xia of Mathworks Technical Support
14+
% only works for char and scalar strings until fixed by Mathworks.
15+
% once fixed, wouldn't need char(s) conversion.
1316
end
1417

1518
end

0 commit comments

Comments
 (0)