randDisk

Sample from a random distribution of points inside the unit disk
ダウンロード: 98
更新 2015/12/12

ライセンスの表示

% randDisk(nSamples,radius,center)
%
% Compute a random distribution of points inside a unit disk.
%
% INPUTS:
% nSamples = number of random samples to return
% radius = optional radius parameter. Default = 1.
% radius = R --> circle with radius R
% radius = [a;b;th] --> ellipse
% a = major-axis radius
% b = minor-axis radius
% th = angle between major-axis and x-axis
% center = [cx, cy] optional center of the circle command
%
% OUTPUTS:
% samples = [x;y] a uniform distribution within the desired region
%
%

引用

Matthew Kelly (2024). randDisk (https://www.mathworks.com/matlabcentral/fileexchange/54460-randdisk), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2012a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.1.0.0

Added photo. Removed arguments of function in file name.

1.0.0.0