Matlab help explains: " Logical Indexing : … The output is always in the form of a column vector."
In practice, typing
a = ones(3,3);b = a([true, true]);
gives a row vector b. Can someone tell me why does it behave this way? And is there any other instance (apart from indexing by one row logical vector) that gives a non-column result? Thanks, O.
Best Answer