MATLAB: Convert logical vector to double

conversionconvertdoublelogical?vector

Hi all,
I'm looking for a way to take a logical vector and convert it to a double in the workspace. How can I do this? I can't seem to find a command to help.
Thanks in advance!

Best Answer

Just simply use double command?
a=[true false];%boolean array
double(a)