Date: Sep 17, 2013 4:37 PM
Author: Michael
Subject: Creating Booleans from Vectors

Hello,

Suppose I have two vectors:

x = [1 3 8 10 11];
y = [2 6 9 15];

and I've created a vector

xy_ordered = [1 2 3 6 8 9 10 11 15];

and I want to make a couple 'cuts';
cX = [1 0 1 0 1 0 1 1 0]
cY = [0 1 0 1 0 1 0 0 1]; %by definition the is ~cX..

What's the quick way to identify and create these cX and cY from x, y, and xy_ordered?

Thank you in advance!

M.A.B.