Skip to content

Commit b14cd82

Browse files
committed
Fixed a bug where isnumeric returned true for MappedTensors of class 'char'
1 parent 42342ea commit b14cd82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MappedTensor.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ function delete(mtVar)
711711

712712
% isnumeric - METHOD Overloaded isnumeric function
713713
function [bIsNumeric] = isnumeric(mtVar)
714-
bIsNumeric = ~islogical(mtVar);
714+
bIsNumeric = ~islogical(mtVar) && ~ischar(mtVar);
715715
end
716716

717717
% isscalar - METHOD Overloaded isscalar function

0 commit comments

Comments
 (0)