Why do I receive an error when using the DEC2HEX function in MATLAB 7.0 (R14)?
Show older comments
When I type the following code:
dec2hex([[2,3,4];[7,8,9]])
I receive the following error:
??? Operands to the || and && operators must be convertible to logical
scalar values. Error in ==> dec2hex at 23 if ~isreal(d) || any(d < 0) ||
any(d ~= fix(d))
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!