I have an array of points or locations that are scattered throughout a big matrix, and I have a small bounding box inside the matrix. I need a way to check if the points in the array are within the bounding box. Thanks for your suggestions.
BoundingBox = [BB1,BB2,BB3,BB4];
Array = [x1,y1;x2,y2;x3,y3;x4,y4;x5,y5;x6,y6];
I have tried
ismember([BB1,BB2,BB3,BB4],Array);
and
ismember(rectangle('Position',[BB1,BB2,BB3,BB4]),Array);
but nothing is working