Transpose with scalar logical argument?
Show older comments
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)
Azzi Abdelmalek
on 17 May 2014
Edited: Azzi Abdelmalek
on 17 May 2014
s=true.'
islogical(s)
But I can't explain why islogical(true.') returns 0
1 Comment
Martin
on 17 May 2014
Edited: Azzi Abdelmalek
on 17 May 2014
Categories
Find more on Other Formats 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!