%% Convert to Logical
% Convert a character vector containing true and false to a logical array.

X = str2num('false true true false')

% Copyright 2012 The MathWorks, Inc.