Question

How to find cell IDs attached to points

If I have a set of inputs for the Voronoi function, and use the convex hull function to obtain a connectivity list for each Voro...

6 years ago | 1 answer | 0

Question

Intersection of two sets keeping all intersected values

Say I have two sets a, and b such that: a=[1 2 3 4 5 6 6 6 7 8 9 10] b=[1 12 113 1 25 3 6 6 ] intersect(a,b)= ...

6 years ago | 2 answers | 0

Question

Intersection of circle chords

The following code contains 3 circles, the lines from each pair of circle's intersections (with circcirc fxn), the slope/y-inter...

6 years ago | 1 answer | 0

Question

Removing matrix rows after the first element of a row becomes too big

I want to remove all of the rows in A after the element of the first column of the nth row passes, say 10. Let A be A = [ ...

6 years ago | 1 answer | 0

Question

How to find the (x,y) coordinate of an intersection value

For the intersection value aijk, how do I find the (x,y) coordinate in PCi, PCj, and PCk (circle powers for i, j, and k respecti...

6 years ago | 2 answers | 0

Question

How to generate points to create evenly distributed equilateral triangles for the delaunayTriangulation function

This code generates the points for equilateral triangles in question for a design space 735*779~, but is inefficient, and kind o...

6 years ago | 1 answer | 0

Question

How to store indexed values from a for loop

C is a cell array with coordinate locations in "new_pts" that create polygons. I would like to collect each v for all j in an a...

6 years ago | 1 answer | 0

Question

Removing data points that are out of a specific boundary

If I have a matrix of xy coordinates A where A is something like A= [1 2 3 4 3 0 10 1 3...

6 years ago | 1 answer | 0

Question

Identifying elements of an array in clockwise order

If I have an array A such that it contains vertex coordinates of polygons where A=[ 1 1; 2 0; 4 0; 10 ...

6 years ago | 0 answers | 0

Question

How to fix "Subscripted assignment dimension mismatch" in For loop with min/sort functions, (or other)

In the following code F(:,i) is being assigned different column sizes for each iteration i. The Dmin sort was my attempt at tak...

6 years ago | 1 answer | 0

Question

How to remove all rows with the same (specific) elements

If I have a, say 20x2 matrix, and I want to remove all rows with the entry 0 (column 1), 0 (column 2), how might I do that (and ...

6 years ago | 1 answer | 0

Question

Finding an element of a cell in a cell array

If I have a cell array: C= [ [1 2 3], [2 2 3], [5 2 7 10 2 1], [12 10 22 0] ,[4 7 5] ] I want to locate all of the 1's (...

6 years ago | 1 answer | 0

Question

Intersection of 3 circles with chords present, and arcs removed

<</matlabcentral/answers/uploaded_files/14897/3%20intersecting%20circles%20with%20arcs.gif>> <</matlabcentral/answers/uploa...

6 years ago | 1 answer | 0

Question

Intersection of voronoi edges and a rectangle

This code generates a Voronoi plot with n random points, and a rectangle containing each closed Voronoi cell. How can I find th...

6 years ago | 1 answer | 0

Question

Removing non unique elements from an array after n entries

If I have an array: [1 2 3 4 5 6 8 1 2 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 .... 5] ^ ...

6 years ago | 1 answer | 0

Question

How to close voronoi shapes?

clc clear all n= 10; x=10*rand(1,n); y=10*rand(1,n); [vx,vy] =voronoi(x,y); [v,c] = voronoin([x(:) y(:)]...

6 years ago | 0 answers | 0

Question

How to break up voronoi cell into triangles (points from center, and two cell vertices)?

clc clear all close all n=6; x=10*rand(n,1); y=10*rand(n,1); X = [x y]; [V,C] = voronoin(X); for i...

6 years ago | 1 answer | 0

Question

How to find the area of voronoi shapes

clc clear all close all n= 60; x=720*rand(1,n); y=360*rand(1,n); voronoi(x,y) [vx,vy] =voronoi(...

6 years ago | 0 answers | 0

Question

How to take the product of distinct array values?

clc; clear all; close all; Bx = 720; By = 360; ...

6 years ago | 1 answer | 0

Question

How to tell whether or not 5 or more lines intersect

<</matlabcentral/answers/uploaded_files/14552/lines-intersection.png>> To the left is 4 intersections, and I am trying to con...

6 years ago | 1 answer | 0

Question

Voronoi Diagram with Delaunay Triangulation circle overlay with restrctions

Is there a way to place restrictions on how Voronoi Diagrams, or Delaunay Triangulation operates as a Matlab function? For the ...

6 years ago | 0 answers | 1

Question

For Intersecting Circles, how to remove overlapping arcs for 3 or more circles?

In the attached image if you project the red lined plane to z=0 (2D) is there a way to plot the circles with chords shown, and a...

6 years ago | 1 answer | 0

Question

Voronoi Diagram with Delaunay Triangulation overlay

If I have some Voronoi Diagram: clc clear all close all n=5 x=10*rand(1,n) y=10*rand(1,n) voronoi(x,y) [vx v...

6 years ago | 1 answer | 0

Question

For intersecting circles, how to remove overlap and have chord visible? Also, how to randomly generate circle position in design space?

As in the image, I am trying to remove the circle overlap from the intersection, and have the chord itself (not present in the i...

6 years ago | 3 answers | 0