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),:) = [];
  1 件のコメント
Lionel Amuzu
Lionel Amuzu 2020 年 7 月 24 日
Thank you Sir.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by