-
src
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!
- 2013-10-30 12:23:18下载
- 积分:1
-
MATLABPrimer
Programming Manual for MATLAB
- 2009-09-15 15:26:02下载
- 积分:1
-
Scattering_by_Cylinders
利用矩量法计算正方形金属柱体的散射,并计算柱体的RCS(The use of moment method to calculate the scattering of a square metal cylinders)
- 2009-10-29 00:34:35下载
- 积分:1
-
power_flow
解power flow CODE(學電力系統必備的東西)(內含詳細註解)(Solution of power flow CODE (learn something essential power systems) (includes detailed annotations))
- 2008-04-21 17:12:25下载
- 积分:1
-
MATLAB
说明: 《计量地理学》(徐建华,高等教育出版社,2005)配套实习指导,利用Matlab编程计算非线性回归模型,以Logistic曲线为例( Quantitative geography (Xu Jianhua, Higher Education Press, 2005) supporting practice guidance, the use of Matlab programming non-linear regression model calculated to Logistic curve as an example)
- 2008-11-21 17:58:57下载
- 积分:1
-
QPSK-Rayleigh
this is simmulation QPSK modulation in rayleigh channel
- 2009-12-18 01:50:41下载
- 积分:1
-
dft_gui
Discrete Fourier transform GUI for MATLAB.
- 2012-04-05 09:05:22下载
- 积分:1
-
griewank
PSO-Griewank for matlab
- 2013-10-31 14:08:47下载
- 积分:1
-
EPStrans
电动助力转向的仿真模型,是本科毕业设计。(The simulation model of the electric power steering is a graduate design.)
- 2021-03-28 19:29:11下载
- 积分:1
-
EMD
empirical mode decomposition
- 2010-07-20 18:49:05下载
- 积分:1