randDisk
% 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
%
%
Cita come
Matthew Kelly (2024). randDisk (https://www.mathworks.com/matlabcentral/fileexchange/54460-randdisk), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.