Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Mathimatics-Numerical algorithms matlab
Title: src Download
 Description: How to use the ordinary Voronoi partition generator. The m-files also have their own help documentation that you can view in Matlab. This code creates a bounding polygon that is a square. Then it randomly creates 10 points and then creates and draws the partition. bounds = [0, 10, 10, 0 0, 0, 10, 10] points = 10 * rand(2, 10) regions = voronoi(bounds, points) drawRegions(bounds, regions) ================================ This is a brief set of instructions on how to use the Multiplicatively- weighted Voronoi partition generator. Each of the m-files has a help section, so in Matlab you can call: help mwvoronoi help drawRegions Here is an example that creates a bounding polygon, a square with side length 10. Then it randomly creates six points with random weights. Finally, the code draws the resulting partition. bounds = [0, 10, 10, 0 0, 0, 10, 10] points = 10 * rand(3, 6) regions = mwvoronoi(bounds, points) drawRegions(bounds, regions) Enjoy!
 Downloaders recently: [More information of uploader S]
 To Search:
File list (Check if you may need any files):
 

src
...\main.cpp
__MACOSX
........\src
........\...\._main.cpp
src\testApp.cpp
...\testApp.h
...\VoronoiDiagramGenerator.cpp
__MACOSX\src\._VoronoiDiagramGenerator.cpp
src\VoronoiDiagramGenerator.h
__MACOSX\._src
    

CodeBus www.codebus.net