Remove portion points in a square boundary

조회 수: 1 (최근 30일)
Lionel Amuzu
Lionel Amuzu 2020년 7월 24일
댓글: Lionel Amuzu 2020년 7월 24일
NB=300;
p=haltonset(2); q=net(p,2000); ra=q(1:NB,:)*10-5;
scatter(ra(:,1),ra(:,2));
My result is:
  • I want to remove the points in the region [0,2]*[0,2]

답변 (1개)

John D'Errico
John D'Errico 2020년 7월 24일
ra(all(ra >= 0,2) & all(ra<=2,2),:) = [];

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by