Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Abox = A(A(:,1)<X1 & A(:,1)>X2 & A(:,2)<Y1 & A(:,2)>Y2,:));
  2.  
  3. indices = find(A(:,1)<X1 & A(:,1)>X2 & A(:,2)<Y1 & A(:,2)>Y2);
  4. Abox = A(indices,:);
  5.  
  6. Axrange = A(A(:,1)<X1 & A(:,1)>X2,:));
  7. Abox = Axrange(Axrange(:,2)<Y1 & Axrange(:,2)>Y2,:);
  8.  
  9. find(A(:,1)<X1 & A(:,1)>X2 & A(:,2)<Y1 & A(:,2)>Y2)
  10.  
  11. indices = find(A(:,1)<X1 & A(:,1)>X2 & A(:,2)<Y1 & A(:,2)>Y2)
  12. A2 = A(indices,:)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement