biterr Error on 3D Matrix
Show older comments
B = [1 2 3; 4 5 6; 7 8 9];
size(B) % ans = 3 3
biterr(B,B) % ans = 0
Why does biterr work here, but not below?
A = B;
A(:,:,2) = [10 11 12; 13 14 15; 16 17 18];
size(A) % ans = 3 3 2
biterr(A,A)
Operands to the || and && operators must be convertible to logical scalar values.
Error in biterr (line 212)
if aIsNumeric && (num_bits > 1)
212 if aIsNumeric && (num_bits > 1)
Accepted Answer
More Answers (1)
Paul Hoffrichter
on 27 Nov 2020
0 votes
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!