Is there a bug in the builtin MTIMES function within MATLAB 7.0 (R14) when given logical scalar inputs?

1 view (last 30 days)
Is there a bug in the MTIMES function within MATLAB 7.0 (R14) when given logical scalar inputs?
The following command converts the logicals to doubles, and returns a value:
mtimes(true, false)
However, when I execute the command:
builtin('mtimes', true, false)
I receive the following error:
??? Function 'mtimes' is not defined for values of class 'logical'.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:
This has been verified as a bug within the MTIMES function within MATLAB 7.0 (R14) in the way it handles scalar logical inputs.
The MTIMES function is not supported for logicals, and should return an error message.

More Answers (0)

Categories

Find more on Shifting and Sorting Matrices 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!