MATLAB: Creating a logical array

logical array

hi guys,
How can i create a logical array [1 0 1 0 1 1 ….] 1-by-15 it will go into gamultiobj with bitstring so the the arranging is not important.

Best Answer

x=boolean([0 1 0 1 0 1 0 1])