I could like to make a matrix consisting of 1's and zeros at certain points. I have a vector that is made up of two other vectors; C = [ A A1] and B = sort[C]

I wish to make a vector that is one at the points A and zero at A1. Because these are interspersed I am confused on how to do this. I tried using find but because A has a different length to C I cant use it for this purpose. Any ideas would be great ðŸ™‚

## Best Answer