Remove portion points in a square boundary

1 Ansicht (letzte 30 Tage)
Lionel Amuzu
Lionel Amuzu am 24 Jul. 2020
Kommentiert: Lionel Amuzu am 24 Jul. 2020
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]

Antworten (1)

John D'Errico
John D'Errico am 24 Jul. 2020
ra(all(ra >= 0,2) & all(ra<=2,2),:) = [];

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by