How to uniformly sample the surface of a sphere?

24 ビュー (過去 30 日間)
Davide Mori
Davide Mori 2020 年 9 月 30 日
編集済み: Bruno Luong 2021 年 3 月 7 日
Hi,
could someone help me to find a way of generating uniformly distributed samples over the surface of a sphere? I need something like 1400 sample over it. Moreover, I would like to obtain the spherical coordinates of each sample.
Thank you :)

採用された回答

Bruno Luong
Bruno Luong 2020 年 9 月 30 日
編集済み: Bruno Luong 2020 年 9 月 30 日
There are few methods avialable on File exchange such as this one.
  4 件のコメント
Davide Mori
Davide Mori 2020 年 9 月 30 日
That's because I was using the function called
function [V,Tri,Ue_i,Ue]=ParticleSampleSphere(varargin)
% Generate an approximately uniform triangular tessellation of a unit
% sphere by minimizing generalized electrostatic potential energy
% (i.e., Reisz s-energy) of a system of charged particles. Effectively,
% this function produces a locally optimal solution to the problem that
% involves finding a minimum Reisz s-energy configuration of N equally
% charged particles confined to the surface of a unit sphere; s=1
% corresponds to the problem originally posed by J.J. Thomson.
But Maybe I got confused by the alert that said "particle limit exceeded".
Anyway it seems like it returns the vertex of the sphere on both the functions, now I need to understand if I want to choose either one method or the other. What do you suggest?
Bruno Luong
Bruno Luong 2020 年 9 月 30 日
I can't suggest anything relevant without knowing what you intend to do with the points.

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

その他の回答 (1 件)

Gary Cofer
Gary Cofer 2021 年 3 月 5 日
編集済み: Bruno Luong 2021 年 3 月 7 日
For a realtime acqusition of data that can be cut short, a 3D Halton series works very well.

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by