Transpose with scalar logical argument?

Hi,
islogical(true') returns true, while islogical(true.') returns false. By design? If so, why?
I (mistakenly) expected both to be logicals, which generated an obscure indexing error for a special case.
Note that both islogical([true true]') and islogical([true true].') return true.
(R2013b and R2013b)
TIA, Martin

Answers (1)

s=true.'
islogical(s)
But I can't explain why islogical(true.') returns 0

1 Comment

In R2013a:
s = true.';
islogical(s)
ans =
0
But I get your result in 2013b.
Partially fixed bug?

Sign in to comment.

Products

Asked:

on 17 May 2014

Edited:

on 17 May 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!