Main Content

3,639 results in File Exchange

Random Circle Packing in a Rectangle With DXF Output

Version 1.0.0 by Ryan O'Hara

This code leverages processing and python circle packing methods in Matlab. DXF output is included for manufacturing.

This code leverages processing and python circle packing methods in Matlab. DXF output is included for manufacturing.

  • 458 (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 31 Mar 2019

Random close packing (RCP) on arbitrary distribution of circle sizes

Version 1.0.0.0 by Ti Xu

An algorithm for RCP based on electromagnetic theory

circles, Gamma distributed in size with shape factor 3.81, is shown in result_v1.png# Motivation & TheoryUpdated March 09 2016. This algorithm produces random close packing or RCP on an input of N radii

  • 1.2K (All time)
  • 2 (Last 30 days)
  • 4.7 / 5
  • Community
  • 24 Sep 2016

Random Close Packing Generator In Arbitrary Dimensions

Version 1.0.8 by Kenneth

Generate large dense high polydisperse circle, sphere, and hypersphere packings in N-D with periodic, hard, or circular boundaries.

This MATLAB implementation offers a method to generate dense random close packings (RCP) of circles, spheres, or hyperspheres using the Adam optimizer. The tool is ideal for generating dense packings

  • 56 (All time)
  • 2 (Last 30 days)
  • -- / 5
  • Community
  • 17 Mar 2026

Random Vectors with Fixed Sum

Version 1.0.0.0 by Roger Stafford

Randomly and uniformly generates vectors with a specified sum and values in a specified interval.

This generates m random n-element column vectors of values, [x1;x2;...;xn], each with a fixed sum, s, and subject to a restriction a<=xi<=b. The vectors are randomly and uniformly distributed

  • 10.3K (All time)
  • 4 (Last 30 days)
  • 5.0 / 5
  • Community
  • 24 Jan 2006

circle plotter

Version 1.1.1 by Chad Greene

Simply plot filled circles or circle outlines.

Adding to the mix of circle plotters on the File Exchange site, this function plots any number of circles of any size and x,y location. Inputs can be any logical mix of scalars, vectors, or N-D

  • 4.9K (All time)
  • 7 (Last 30 days)
  • 4.8 / 5
  • Community
  • 20 May 2019

Circle Finder

Version 2.0.0.1 by Brett Shoelson

Interactive app and function to find circles in an image.

In R2012a, we introduce CIRCULAR HOUGH TRANSFORMS for detecting circles in images. There are several parameters which can be manipulated to enhance the performance of the IMFINDCIRCLES functionality

- mask = createCirclesMask(sz,centers,radii)
- UI interface for imfindcircles functionality
  • 11.1K (All time)
  • 8 (Last 30 days)
  • 5.0 / 5
  • Community
  • 1 Sep 2016

Growbubbles - maximum radius packing

Version 1.0.0.0 by Sven

Growbubbles takes centroid points and returns the maximum radius circles or spheres without overlap

%GROWBUBBLES packs maximum radius circles at given central locations%% PTRADS = GROWBUBBLES(PTS) returns the radius of circles at coordinates in PTS with all radii% maximised but without any

- GROWBUBBLES packs maximum radius circles at given central locations
  • 1.7K (All time)
  • 2 (Last 30 days)
  • 4.6 / 5
  • Community
  • 10 Oct 2011

Draw randomly centered circles of various sizes

Version 2.3.0 by Adam Danz

Set the range of radii, density, and other parameters to create a plot that draws randomly centered polygons with or without overlap.

bubblebath() plots circles or other polygons at random positions with varying radii. All input parameters are optional including frame size, range of radii, number of vertices per bubble (eg

  • 768 (All time)
  • 4 (Last 30 days)
  • 5.0 / 5
  • Community
  • 22 Jan 2021

Circle fit

Version 1.0.0.0 by Izhak Bucher

Fit a circle to a set of measured x,y points.

Revival of a 14 years old code (written in 1991 for MATLAB 2.x).Given a set of measured x,y pairs that a re supposed to reside on a circle, but with some added noise. A circle to these points, i.e

  • 28.9K (All time)
  • 7 (Last 30 days)
  • 4.4 / 5
  • Community
  • 29 Jul 2004

Hough transform for circles

Version 1.2.0.0 by David Young

A Hough transform function for detecting circles, optimised to allow search over radii.

The Hough transform may be used to detect circular shapes in images, after binarisation, for example by an edge detector. Often, functions to do this operation require the radius of the circle to be

- CIRCLE_HOUGH Hough transform for circles
- CIRCLE_HOUGHPEAKS finds peaks in the output of CIRCLE_HOUGH
- CIRCLEPOINTS Returns integer points close to a circle
  • 22.7K (All time)
  • 19 (Last 30 days)
  • 4.6 / 5
  • Community
  • 4 Mar 2016

Aggregate Packing Generator

Version 1.0.3 by Ayad Al-Rumaithi

Aggregate packing generator used for the simulation of aggregate in composites

Aggregate packing generator used for the simulation of aggregate in composites. It can be used especially for meso-scale analysis of concrete and asphalt composites .Example files are provided for

  • 726 (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 5 Sep 2024

Exact minimum bounding spheres and circles

Version 1.5.1 by Anton Semechko

Compute exact and approximate minimum bounding spheres/circles of 3D/2D point sets

# Bounding Spheres and Circles[![View Exact minimum bounding spheres and circles on File

  • 2.2K (All time)
  • 3 (Last 30 days)
  • 4.9 / 5
  • Community
  • 7 Oct 2025

minimize ratio perimeter/sqrt(area) of a random shape

Version 1.0.0.0 by Maxim Vedenyov

Random search used. Result is circle of cause.

http://simulations.narod.ru/Shape is represented as 32-vertex polygone. The program in starts with random shape. In iteration of random search it search minimum perimeter/sqrt(area) each time. In

- random search with contraction:
- random search with contraction:
- random search with contraction:
  • 599 (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 4 Jan 2011

Mesh a circle with quadrilaterals

Version 1.0.0.0 by KSSV

Mesh a circle with quadrilaterals

Given the center and radius of circle, the function MeshCircle meshes the circle with quadrilaterals (four noded element). The function uses two boundary transfinite interpolation (TFI) to mesh the

- Function to mesh the given circle with quadrilaterals using two boundary
- plotgrid: To plot structured grid.
- To delete the double nodes
  • 539 (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 23 Jun 2016

Surface generator: artificial randomly rough surfaces

Version 1.1.0.0 by Mona Mahboob Kanafi

Generates randomly rough fractal surfaces with different fractal (Hurst) parameters

This code generates artificial randomly rough isotropic surfaces. These surfaces could be useful for simulating surface roughness or topographies from nanometre features of engineering surfaces to

- Generates artifial randomly rough surfaces with given parameters.
  • 3.5K (All time)
  • 9 (Last 30 days)
  • 5.0 / 5
  • Community
  • 19 Dec 2016

Aggregate Packing Generator with Thick Fibers

Version 1.0.7 by Ayad Al-Rumaithi

Aggregate packing generator with fibers used for the simulation of aggregate and fibers in composites

Aggregate packing generator with fibers used for the simulation of aggregate and fibers in composites. It can be used especially for meso-scale analysis of fiber-reinforced concrete. The algorithm

  • 377 (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 7 Sep 2024

Fit circle through 3 points

Version 1.0.0.0 by Danylo Malyuta

A fault-tolerant function for computing a circle's center and radius given three x-y points

circle. Example: [-1 2;2 5;1 1] represents the set of points (-1,2), (2,5) and (1,1) in Cartesian (x,y) coordinates.Outputs: R is a [1 x n] array of circle radii corresponding to each set of three

  • 2.1K (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 14 Jun 2016

Circle Fit (Pratt method)

Version 1.0.0.0 by Nikolai Chernov

Fits a circle to a set of data points on a plane; returns the circle center (a,b) and radius R.

This is a robust and accurate circle fit. It works well even if datapoints are observed only within a small arc. This circle fit was proposed by V. Pratt in article "Direct least-squares fitting of

  • 13.4K (All time)
  • 10 (Last 30 days)
  • 4.6 / 5
  • Community
  • 10 Jan 2009

Draw a circle.

Version 1.1.0.0 by Zhihua He

Easy circle drawing.

  • 73.9K (All time)
  • 4 (Last 30 days)
  • 4.3 / 5
  • Community
  • 6 Oct 2011

A suite of minimal bounding objects

Version 1.2.0.0 by John D'Errico

Suite of tools to compute minimal bounding circles, rectangles, triangles, spheres, incircles, etc.

- triangle- general quadrilateral- circle- parallelogram- semi-circlethere is a tool in here to solve your task efficiently. You will also find minboundsphere, for 3-d data. Inscribed objects are also

- minboundsemicircle: minimum radius bounding semi-circle
- Test suite for Minimum bounding objects: RECT, CIRCLE, SPHERE, ELLIPSE
- minboundcircle: Compute the minimum radius enclosing circle of a set of (x,y) pairs
- incircle: compute the maximal in-circle of the polygonal convex hull of a set of points in the plane
  • 9.1K (All time)
  • 15 (Last 30 days)
  • 4.8 / 5
  • Community
  • 23 May 2014

Draw a filled circle

Version 1.0.0.0 by Sadik

Plots a filled circle with given radius, center and color.

FILLEDCIRCLE Filled circle drawingfilledCircle(CENTER,R,N,COLOR) draws a circle filled with COLOR that has CENTER as its center and R as its radius, by using N points on the periphery.Usage

  • 8.3K (All time)
  • 1 (Last 30 days)
  • 4.7 / 5
  • Community
  • 23 May 2010

Circle Fit (Taubin method)

Version 1.0.0.0 by Nikolai Chernov

Fits a circle to a set of data points on a plane; returns the circle center (a,b) and radius R.

This is a robust and accurate circle fit. It works well even if datapoints are observed only within a small arc. This circle fit wasproposed by G. Taubin in article "Estimation Of Planar Curves

  • 9.6K (All time)
  • 6 (Last 30 days)
  • 4.6 / 5
  • Community
  • 13 Jan 2009

Chaotic pseudo random bit generator with two seeds and XOR

Version 1.0.0 by Lazaros Moysis

Chaotic pseudo random bit generator with two seeds and XOR

This code implements the pseudo random bit generator from the work:Moysis, L., & Lawnik, M. (2026). On the Quest for a PRBG Architecture with Consistent Performance Under Any 1D Chaotic Map. In

  • 1 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 14 May 2026

circles

Version 1.0.0.0 by Matthew Eicholtz

Draw multiple circles fast.

CIRCLES was inspired by the built-in function VISCIRCLES; the two main differences being that it draws circles as a patch rather than a line and offers a bit more flexibility (I think) in terms of

- CIRCLES Plot multiple circles as a single patch.
- DEMOCIRCLES Demonstrate the CIRCLES function.
  • 269 (All time)
  • 3 (Last 30 days)
  • 5.0 / 5
  • Community
  • 22 Sep 2016

Circle Bounded Voronoi Diagram

Version 1.0.0.0 by Meng Sang Ong

Compute individual Voronoi cell area of 2D point sets bounded in a unit circle

This function compute the individual Voronoi cell area of point sets bounded in a unit circle.Inputs:x : M x 1 array of x-coordinatesy : M x 1 array of y-coordinatestoggleplot : 1 to turn on figures

- CIRCLEBV Circle Bounded Voronoi Diagram
- An arbitrarily selected small number for distance comparison
- Generate test point set in a unit circle
  • 1.2K (All time)
  • 4 (Last 30 days)
  • 5.0 / 5
  • Community
  • 9 Feb 2011

Generate Random Numbers from a 2D Discrete Distribution

Version 1.3.0.0 by Tristan Ursell

Random numbers from any 2D discrete probability distribution, at any resolution.

Tristan Ursell2D Random Number Generator for a Given Discrete DistributionMarch 2012[x0,y0]=pinky(Xin,Yin,dist_in,varargin);'Xin' is a vector specifying the equally spaced values along the

  • 1.8K (All time)
  • 3 (Last 30 days)
  • 4.9 / 5
  • Community
  • 10 Feb 2016

Detect circles with various radii in grayscale image via Hough Transform

Version 1.1.0.0 by Tao Peng

Detect circular shapes in a grayscale image. Resolve their center positions and radii.

operation but at the same time larger memory consumption.3. Detection of radii works for concentric circles as well.

- Draw a circle on the current figure using ploylines
  • 39.4K (All time)
  • 2 (Last 30 days)
  • 4.7 / 5
  • Community
  • 17 Nov 2010

Random numbers from a user defined distribution

Version 1.0.0.0 by Adam Nieslony

creturns the matrix of random numbers from user defined probability density distribution.

RANDPDF returns the matrix of random numbers from probability density distribution defined in p and px. p are the density (the y axis) and px are the value (the x axis) of the pdf. p and px must be

  • 3.9K (All time)
  • 3 (Last 30 days)
  • 5.0 / 5
  • Community
  • 2 Dec 2009

Random Waypoint mobility model

Version 1.0.0.0 by Mathieu Boutin

Generates a random waypoint mobility scenario for any number of nodes. Animation included.

Three files: "test_Execute.m" is the file to run, "Generate_Mobility.m" generates a structure containing all needed information resulting from the random waypoint mobility model, and "test_Animate.m

- Testing Random Waypoint mobility model.
  • 4.2K (All time)
  • 1 (Last 30 days)
  • 4.5 / 5
  • Community
  • 1 Apr 2011

Maximum Inscribed Circle using Distance Transform

Version 1.0.0.0 by Tolga Birdal

Approximately computes the largest inner circle of a contour/region using distance transform

Maximum Inscribed Circle Or in other words, "largest inner circle" , "maximum empty circle" etc.This is a very common problem in computational geometry, and it is not simple to solve

  • 3.4K (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 19 Mar 2011

circlem

Version 1.2.0.0 by Chad Greene

Draw circles on maps

Drawing a circle of a given radius on a map using Matlab's built-in functions is surprisingly unintuitive. So when there's some sort of outbreak or nuclear threat emanating from a city and you need

- CIRCLEM draws circles on maps.
  • 2.7K (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 15 Oct 2014

Hough Transform for circle detection

Version 1.1.0.0 by Peter Bone

An optimized Hough transform for circle detection.

This Hough transform is highly optimized. It uses the midpoint circle algorithm to draw the circles in voting space quickly and without gaps. It also includes an option for searching only part of the

- HOUGHCIRCLE - detects circles with specific radius in a binary image.
  • 42.2K (All time)
  • 2 (Last 30 days)
  • 4.2 / 5
  • Community
  • 5 May 2010

Random Walks in MATLAB

Version 1.2.0.1 by Mark Hoyle

Files which simulate random walks on a lattice and on a graph

These files show how MATLAB can be used to simulate random walks both on a lattice in N-dimensions and on a graph. The zip file contains the following:RandDir: generates a random basis vector on a

- Random walks *without* the Econometrics Toolbox
- Produce a random edge on a graph defined by S
  • 7.4K (All time)
  • 3 (Last 30 days)
  • 4.6 / 5
  • Community
  • 1 Sep 2016

Random Numbers from a Discrete Distribution

Version 1.7.0.0 by Tristan Ursell

Simple algorithm to generate random numbers from a user-defined discrete probability distribution.

GENDIST - generate random numbers according to a discrete probability distributionTristan Ursell, 2011.T = gendist(P,N,M)T = gendist(P,N,M,'plot')The function gendist(P,N,M) takes in a positive

- %GENDIST - generate random numbers according to a discrete probability
  • 3K (All time)
  • 1 (Last 30 days)
  • 4.8 / 5
  • Community
  • 21 Mar 2012

Circle Detection Using Hough Transforms

Version 1.1.0.0 by Kobi Nistel

Finds circles of any radii in a image.

Finds circles of any radii in RGB or grayscale images. returns a list of centers and radii.Useage example:[r , c , rad] = circlefinder(im);finds circles with the default settings.[r , c , rad] =

- RGBCircle Draws a circle or ellipse on a RGB image.
- circlefinder - useage example
- finds the maxima points in x with value > thresh
- HOUGHTRANSFORM circle hough transform on a binary image im.
- EXTRACTCIRCLES extract circles from transformed image.
- CIRCLEFINDER finds circles in an RGB or grayscale image.
- NONMAXSUPPTS - Non-maximal suppression for features/corners
- CFRESIZE resize the image if its long dimension is bigger then longDimSize
- circlefinder - useage example
  • 4.4K (All time)
  • 1 (Last 30 days)
  • 4.8 / 5
  • Community
  • 3 Jul 2012

Random Cropped Image Generator

Version 1.1.0.0 by Soumyabrata Dev

This script helps in the generation of cropped image with random offset and random orientation.

This helps in the creation of cropped square image from an input image (RGB/Grayscale). The cropped image is randomly generated from the input image wherein the pixel location is randomly chosen

- Returns a cropped image of the input image. The cropped image is
  • 496 (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 17 Mar 2014

CNN classification using random erasing/cut out

Version 1.1 by Kenta

This demo shows how to do random erasing/cut out augmentation in CNN classification. random erasing や cut outとよばれる方法を用いて画像にマスクをかけ、分類を行います。

CNN classification using random erasing / cut out[English]This demo shows how to perform random erasing/cut out augmentation in CNN classification as explained in [1] and [2]. A rectangle mask was

  • 402 (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 22 Aug 2021

Aggregate Packing Generator with Fibers

Version 1.0.7 by Ayad Al-Rumaithi

Aggregate packing generator with fibers used for the simulation of aggregate and fibers in composites

Aggregate packing generator with fibers used for the simulation of aggregate and fibers in composites. It can be used especially for meso-scale analysis of fiber-reinforced concrete. Example files

  • 302 (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 9 Sep 2024

True Random Integer Generator

Version 1.0.0.1 by Ameya Deoras

Download true (not pseudo-) random numbers from random.org's generator

The function TRUERAND returns truly random integers using random.org's Random Integer Generator. According to random.org, the numbers are generated based on atmospheric noise and skew-corrected to

- TRUERAND Returns truly random integers using random.org's Random Integer
  • 3.2K (All time)
  • 3 (Last 30 days)
  • 5.0 / 5
  • Community
  • 1 Sep 2016

Circle pixel coordinates using mid-point algorithm

Version 1.1.0.0 by Jean-Yves Tinevez

Return the optimal pixel coordinates of a circle, given its center and radius.

GETMIDPOINTCIRCLE return the x,y pixel coordinates of a circle [x y] = getmidpointcircle(x0, y0, radius) returns the pixel coordinates of the circle centered at pixel position [x0 y0] and of the

- GETMIDPOINTCIRCLE return the x,y pixel coordinates of a circle
  • 1.3K (All time)
  • 2 (Last 30 days)
  • 4.9 / 5
  • Community
  • 21 Feb 2013

Mosaic random-images

Version 1.0.0.0 by Syed Yasser Arafat

This program creates random mosaic / tile image

  • 1.3K (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 28 Nov 2008

Graph_Signal_Processing

Version 1.0.0 by muhammet balcilar

Signal Processing on non-euclidien domain signals

- Density of packing given by minimum distance
- Density of packing given by minimum distance of EQ point set
- Density of packing given by minimum distance of a point set
- Try to maximize minimum distance of center points for S^2 collars
- Create a random regualar graph
- Initialize a random ring graph
- The asymptotic density function of the graph Laplacian
- Create a random sensor graph
- Create a random Erdos Renyi graph
- Reset the seed of the random number generator
- Create a random graph from non_uniform sampling of points
- Assign random direction to p percent edges of the undirected graph G
  • 1.6K (All time)
  • 9 (Last 30 days)
  • 5.0 / 5
  • Community
  • 14 Mar 2019

Plot Circle in 3D

Version 1.0.0.0 by Christian Reinbacher

Plots a Circle with arbitrary direction in 3D

Take a center point, a normal vector and a radius and plots a Circle in 3D using plot3

  • 5.8K (All time)
  • 2 (Last 30 days)
  • 4.6 / 5
  • Community
  • 4 Feb 2010

qMRLab

Version 2.4.1 by Agah Karakuzu

Quantitative Magnetic Resonance Imaging Made Easy with qMRLab: Use GUI or CLI to fit and simulate a myriad of qMRI models.

minimize B1 nonuniformity effects in quantitative magnetization transfer imaging. Mag Res Med 2018Mingasson et al. AxonPacking: an open-source software to simulate arrangements of axons in white matter

- (numelparticle, trans_mean, D, scheme, packing, axons)
- Random samples from the Rice/Rician probability distribution.
  • 922 (All time)
  • 6 (Last 30 days)
  • 5.0 / 5
  • Community
  • 7 Dec 2023

Random Number from Empirical Distribution

Version 1.0.0.0 by Durga Lal Shrestha

Generates random numbers from empirical distribution of data

EMPRAND generates random numbers from empirical distribution of data. This is useful when you do not know the distribution type (i.e. normal or uniform), but you have the data and you want to

  • 5K (All time)
  • 3 (Last 30 days)
  • 4.6 / 5
  • Community
  • 4 Apr 2016

Random Field Simulation

Version 1.5.0.0 by Paul Constantine

Generate multivariate conditional random fields given a mesh and covariance information.

random process. These fields may be conditioned on known data values. The correlation information can be:- one of three parameterized models,- a given correlation matrix with dimensions corresponding to

- RANDOMFIELD Generates realizations of a Gaussian random field.
  • 6.9K (All time)
  • 5 (Last 30 days)
  • 4.9 / 5
  • Community
  • 26 Apr 2012

neuropoly/axonpacking

Version 2.3.0.0 by Tom Mingasson

Algorithm for the random disks packing problem

AxonPacking: an open-source software to simulate arrangements of axons in white matterauthor : Tom Mingasson contact : mingasson.tom@gmail.com institution : University Polytechnique Montreal

  • 185 (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 8 Dec 2016

Circle Fit (Kasa method)

Version 1.0.0.0 by Nikolai Chernov

Fits a circle to a given set of planar points

This is the fastest (though not most accurate) method of fitting a circlle to data points on a plane (given by their xy-coordinates). It returns the circle center (a,b) and radius R. It was proposed

  • 3.7K (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 10 Jan 2009

Filled Circle

Version 1.0.0.0 by sapthagirivasan v

Filled circle or crop circle area

select 2 seed points from mouse click. 1st one vl be mid point of the circle and 2nd vl be radius of the same.it vl crop the area

  • 2K (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 28 Feb 2009

Random point inside a polygone

Version 1.0.1 by Stephane Dauvillier

Create random point inside a polygone

  • 122 (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 15 May 2019

geom2d

Version 1.25 by David Legland

Geometry library for matlab. Performs geometric computations on points, lines, circles, polygons...

Geometry library to handle and visualize geometric primitives such as points, lines, circles and ellipses, polylines and polygons...The goal is to provide a low-level library for manipulating

- Circumscribed circle of three points.
- Draw a circle on the current axis.
- Create a circle from 2 or 3 points.
- Find the minimum circle enclosing a set of points.
- Intersection points of two circles.
- Create a directed circle.
- Draw a circle arc on the current axis.
- Convert a circle into a series of points.
- Intersection point(s) of a line and a circle.
- Description of functions operating on circles.
- Convert a circle arc into a series of points.
- Test if a point is located inside a given circle.
- Test if a point is located on a given circle.
- Generate random point within a box.
- Generate random point(s) in a polygon.
- Demo of the polynomialCurveSetFit function
- Draw various types of shapes (circles, polygons...).
- Compute the radical axis (or radical line) of 2 circles.
- Demo file of geom2d lib: lines and circles of a triangle
  • 34.4K (All time)
  • 8 (Last 30 days)
  • 4.1 / 5
  • Community
  • 26 Sep 2019

2D Apollonian gasket with n identical circles

Version 1.1.0.0 by Guillaume JACQUENOT

Plot a 2D apollonian gasket with n identical circles

apollonian packing. (3 at least)- a positive integer, which corresponds to the number of levels of the apollonian. Higher the number of level is, more numerous the circles will be. 10 levels is a quite high

  • 2.8K (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 1 Feb 2009

Generation Of Solid Shapes Using Random Number Generator

Version 1.0.0.0 by Nishant Gupta

Generation Of Solid Shapes Using Random Number Generator.

Generation Of Solid Shapes Using Random Number Generator. The Solid Shapes included are:1) Cuboid/Cube2) Sphere3) Cone4) Conical Frustum5) Pyramid6) Pyramidal Frustum7) CylinderTake it as an exercise

- Creating Cone using Random Function
- Creating Cylinder using Random Function
- Creating Sphere using Random Function
- Creating Frustum using Random Function
- Creating Pyramid using Random Function
- Creating Cube/Cuboid using Random Function
- Creating Pyramidal Frustum using Random Function
  • 534 (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 21 Jun 2011

Linear congruential random number generator

Version 1.0.0.1 by Michael Chan

Demonstrate the principal idea of getting random bits

The objective is to demonstrate the principal idea of getting random bits, i.e. probability of occurrences in every observable module is 50%-50%.The illusion of randomness provides such an

  • 1.1K (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 14 May 2025

Generation of Random Variates

Version 1.0.0.0 by James Huntley

generates random variates from over 870 univariate distributions

This code package provides a framework for generating random samples of univariate distribution functions. It has an Excel database that currently lists over 870 distributions, their parameters as

- circline_cdf.m - evaluates a Circle-Line Cumulative Distribution.
- circline_pdf.m - evaluates a Circle-Line Probability Density.
- rwalkrng_cdf.m - evaluates a Random Walk Range Cumulative Distribution.
- gamaintg_rnd.m - generates 'nsamples' of a Linnik random variable.
- genormlap_rnd.m - generates 'nsamples' of a Stable random variable.
- stable_rnd.m - generates 'nsamples' of a Stable random variable.
- digamma_pdf.m - generate random deviates for the Digamma Distibution.
- ades_rnd.m - generates 'nsamples' of an Ades random variable.
- linnik_rnd.m - generates 'nsamples' of a Linnik random variable.
- mitlef_rnd.m - generates 'nsamples' of a Mittag Leffler random variable.
- delotter_pdf.m - evaluatess a Delta Otter (Random Walk) Probability Density.
- disades_rnd.m - generates 'nsamples' of a Discrete Ades random variable.
- schmeis_rnd.m - generates 'nsamples' of a Schmeiser-Deutsch random variable.
- grassia1_rnd.m - generates 'nsamples' of a Grassia 1 random variable.
- grassia2_rnd.m - generates 'nsamples' of a Grassia 2 random variable.
- tadikal_rnd.m - generates 'nsamples' of a Tadikamalla-Johnson L random variable.
- tadikau_rnd.m - generates 'nsamples' of a Tadikamalla-Johnson U random variable.
- jtb_rnd.m - generates 'nsamples' of a Johnson Teitjen beckman random variable.
- tadikab_rnd.m - generates 'nsamples' of a Tadikamalla-Johnson B random variable.
- stable_rand_ppf.m - sample random numbers from the Alpha-Stable (Levy) Distribution.
- gen_distrib.m - generates random numbers from any of a wide variety of distributions
- gen_distrib2.m - generates random numbers from any of a wide variety of distributions
- distribs.m - calling program to generate random numbers from any of a wide variety of
- distribs31.m - program to generate random numbers from any of a wide variety of
- distribs.m - calling program to generate random numbers from any of a wide variety of
  • 4.8K (All time)
  • 5 (Last 30 days)
  • 4.1 / 5
  • Community
  • 9 Feb 2012

Largest inscribed rectangle, square or circle

Version 2.0.1 by Peter Seibold

The included functions will find the largest inscribed rectangle, square or circle of any orientation and in any arbitrary image.

Included are also functions for parallel processing (not for circles) and GUI 'LRC_Demo.m' for easy use. LARGEST RECTANGLE OR SQUAREINPUT for LargestRectangle and LargestSquare: The input has a

  • 551 (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 12 Oct 2020

draw_circle

Version 1.0.0.0 by Ilya Rozenfeld

Plots an interactively modifiable circle patch.

DRAW_CIRCLE plots a circle patch which can be modified later by pressing Shift+Left mouse button on the circle.Circle's location, radius, color and transparency can be modified interactively using

- DRAW_CIRCLE plots a circle patch which can be modified later by pressing
  • 2.1K (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 26 Nov 2007

Mohr's Circle

Version 1.0.0.0 by andrew arndt

Mohr's Circle

This is a script for Mohr's Circle. It displays all three circles, all principle stresses, and the other information associated with Mohr's Circle.

  • 2.3K (All time)
  • 6 (Last 30 days)
  • 5.0 / 5
  • Community
  • 2 Nov 2017

Generate Random Points in Multi-Dimensional Space subject to Linear Constraints

Version 1.0.0.0 by Cheng

Generate Random Points in Multi-Dimensional Space subject to Linear Constraints

Generate Random Points in Multi-Dimensional Space subject to Linear Constraints. Algorithm is random walk type.Originally, this is used for MultiStart optimization.

  • 342 (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 9 Apr 2012

Simulation of Random Variables - Numerical Method

Version 1.0.0.0 by Yiming Huang

Simulation of random variables using inverse method and acceptance-rejection method.

This file contains various functions that generate random variables using two methods: inverse method and acceptance-rejection method. Random variables from following distributions are

- Generate discrete bionomial random variable
- Generating a bernoulli random variable
- Generate discrete geometric distributed random variables
- Generating exponential random variable with given lambda
- generate random variable from generalized pareto distribution using
- generate random variable from gamma distribution using acceptance
- Generate discrete poisson distributed random variable with parameter
- Genreate uniform random variable using built-in rand generator
- Using acceptance rejection method to generate random variable from a given
  • 412 (All time)
  • 3 (Last 30 days)
  • 5.0 / 5
  • Community
  • 24 Feb 2016

Load more