Main Content

3,665 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

  • 60 (All time)
  • 4 (Last 30 days)
  • -- / 5
  • Community
  • 17 Mar 2026

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

  • 771 (All time)
  • 3 (Last 30 days)
  • 5.0 / 5
  • Community
  • 22 Jan 2021

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)
  • 1 (Last 30 days)
  • 4.8 / 5
  • Community
  • 20 May 2019

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)
  • 5 (Last 30 days)
  • 5.0 / 5
  • Community
  • 24 Jan 2006

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)
  • 10 (Last 30 days)
  • 5.0 / 5
  • Community
  • 1 Sep 2016

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

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

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

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

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

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

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)
  • 2 (Last 30 days)
  • 4.6 / 5
  • Community
  • 4 Mar 2016

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

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

Draw a circle.

Version 1.1.0.0 by Zhihua He

Easy circle drawing.

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

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.
  • 271 (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 22 Sep 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)
  • 9 (Last 30 days)
  • 4.6 / 5
  • Community
  • 10 Jan 2009

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

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

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)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 19 Mar 2011

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

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)
  • 1 (Last 30 days)
  • 4.9 / 5
  • Community
  • 21 Feb 2013

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)
  • 11 (Last 30 days)
  • 5.0 / 5
  • Community
  • 19 Dec 2016

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.
- CFRESIZE resize the image if its long dimension is bigger then longDimSize
- NONMAXSUPPTS - Non-maximal suppression for features/corners
- circlefinder - useage example
  • 4.4K (All time)
  • 1 (Last 30 days)
  • 4.8 / 5
  • Community
  • 3 Jul 2012

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 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

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)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 1 Feb 2009

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

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)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 1 Sep 2016

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

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

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

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

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)
  • 5 (Last 30 days)
  • 5.0 / 5
  • Community
  • 2 Nov 2017

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

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

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)
  • 2 (Last 30 days)
  • 4.9 / 5
  • Community
  • 10 Feb 2016

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

  • 554 (All time)
  • 3 (Last 30 days)
  • 5.0 / 5
  • Community
  • 12 Oct 2020

2D random walk confined in a circular domain with reflective boundaries

Version 1.0.0.0 by Sanaz Sadegh

2D random walk confined in a circular domain with reflective boundaries

Generates a random walk (RW) with m steps. The x and y components of each step are drawn from a normal distribution with standard deviation sigma. The RW is confined to a circle of diameter d with

  • 304 (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 11 Dec 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

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

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

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

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

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

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

  • 403 (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 22 Aug 2021

circle_fit

Version 1.0.0 by Hans Möbius

This is a very small function which finds a best-fit circle for some given points.

This function takes the given points in P and finds acircle, so that the variance over all distances from the circle-center to the given points is minimized. The center-coordinates M and the radius r

  • 189 (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 8 Jun 2019

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

Version 1.0.0.0 by Alex Bar-Guy

Uniformly distributed random numbers on a non-continuous domain defined by several intervals.

RANDOM takes the advantage of RAND basic function to generate random entries, chosen from a uniform distribution on the non-continuous domain defined by several intervals.RANDOM with no input

- RANDOM Uniformly distributed random numbers on a non-continuous
  • 2.7K (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 29 Dec 2004

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

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

Circle/ellipse on RGB image

Version 1.0.0.0 by Kobi Nistel

Draws a circle or ellipse on a RGB image

Draws a circle or ellipse on a RGB image.can be used to insert circles into movies.Includes a little animation demo that demonstrates the use.

  • 942 (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 21 Dec 2010

Random combinatorics

Version 1.0.0.0 by Marc Lalancette

Random sets of distinct permutations, combinations and subsets

Generation of random sets of distinct combinatorial objects: Distinct random permutations (orders, rankings) of n elements (out of n! possible). Distinct random combinations of k out of n elements

  • 73 (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 29 Jun 2016

Random Number Generator

Version 1.0.0.0 by Sander Khowaja

This code generates a random number using Mersenne Twister Method

This code is for generating random numbers without using rng or rand functions of MATLAB. This was one of my weekly assignments, therefore, anybody can edit, modify or improvise the code as per their

- uniform random variable generator
- uniform random variable generator
- Demo file for generating uniform random variable using Mersenne Twister Method
  • 257 (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 12 Dec 2016

Laplacian random number generator

Version 1.0.0.0 by Elvis Chen

Generate i.i.d. random number drawn from laplacian distribution with specified parameter

function y = laprnd(m, n, mu, sigma)%LAPRND generate i.i.d. laplacian random number drawn from laplacian distribution% with mean mu and standard deviation sigma. % mu : mean% sigma :

- LAPRND generate i.i.d. laplacian random number drawn from laplacian distribution
  • 8.2K (All time)
  • 2 (Last 30 days)
  • 4.7 / 5
  • Community
  • 18 Jan 2007

Create Circles

Version 1.0.0.0 by J.A. Disselhorst

Create circles and other shapes with the mouse.

Lets you create a circle with N points in the current figure. Use the mouse to indicate the center and adjust the radius. Press ENTER to confirm the shape and output its X and Y values. The N

- CREATECIRCLE Create a circle with the mouse
  • 1.9K (All time)
  • 1 (Last 30 days)
  • 4.8 / 5
  • Community
  • 18 Jun 2008

Load more