Question

How would the MATLAB code look for polyshape, given a set of coordinates for all the nodes for a network of polygons?

I need generate some code that will return: Number of polygons Number of sides/edges for each polygon Length of all edges Ar...

15 hours ago | 0 answers | 0

Question

How would I use Voronoi and/or Delaunay Triangulation methods for information on polygons

I have some coordinates, which are the nodes for a network of polygons. How do I use Voronoi and/or Delaunay Triangulation metho...

3 days ago | 1 answer | 0

Question

Can anyone suggest some code that will determine the number of edges and area of polygons in a plot?

We need to find and store the number of edges, as well as the areas, of each of the polygons generated by the code (and shown th...

15 days ago | 0 answers | 0

Question

Could someone write some code to extract details within a for loop?

In my previous post, I was given some code that works great, but I need to extract some details that are mentioned within one of...

17 days ago | 1 answer | 0

Question

Can someone propose some code that will "connect the dots" using circular arcs?

Hi, Can someone propose some alternate or additional code (to the code proposed in my last posting here) that will automaticall...

25 days ago | 3 answers | 0

Question

Can someone propose some code that will "connect the dots" to produce the correct geometric shapes (i.e., hexagons, pentagons, rectangles) from these points?

Hi, I'm wondering if someone could propose some clever code that will automatically connect the dots (as shown in the fabricate...

1 month ago | 3 answers | 1

Question

How do I store the changing values of a variable (generated in a for loop) into a single file without overwriting the previous one?

For example: n = 100; for ii = 1 : n areatriangle = .5*((ii/2)*ii); end In the case above, I want to store all the outcomes...

1 month ago | 1 answer | 0

Question

How do I pass values in and out of a function, which was a script that I have converted into a function?

Below is some code that I need to first convert into a function. Then I would like to write a small external for loop that passe...

1 month ago | 0 answers | 0

Question

Can I just run some (loopless) code n times without having to modify the code to include a for loop?

I would like to know if it is possible to run the attached code n times, without having to modify the code (i.e., to include a f...

1 month ago | 1 answer | 0

Question

Can someone help us with choosing the best syntax and nomenclature for this code?

I have this code we are trying to run to create vectors from n closest points. However, it seems to be getting too complicated. ...

2 months ago | 0 answers | 0

Question

What is the best way to store different variables into 1 variable?

I need to take a bunch of coordinate points that I have stored in a variable, and sort them in groups of the ten closest endpoin...

2 months ago | 1 answer | 0

Question

How do I create some code that will check angles and select the next point to draw a line to based on smallest angle?

Hi, I need to create the simplest code that will check the angles between a line connecting one central point and another and a...

2 months ago | 1 answer | 0

Question

What is the best way to find angles between these two lines?

I have a file (closest_central_points.m) that has a group of 10 closets central points. I have another file (fpep.mat) that has ...

2 months ago | 1 answer | 0

Question

Finding the 10 nearest points to every point (with corresponding distances) within a single variable

Hi, I need to find the 10 nearest points (with distances) to every other point within a group of points (i.e., 10 nearest nei...

2 months ago | 2 answers | 0

Question

10 nearest neighbors between points

Hi People, I could really some help asap. I need to figure out how to modify the code proposed by MattJ (from a previous ques...

2 months ago | 1 answer | 0

Question

What is the best way to set up a nested for loop?

Hi, I need help creating an efficient, nested for-loop. I have to run through a couple of equations on a few of variables but...

3 months ago | 2 answers | 0

Question

Need to find and store angles between vectors for given a set of points

Hi, I would like to follow up on my previous questions to MattJ: I now need to find and store the angles between the vectors...

3 months ago | 0 answers | 0

Question

How do I call on each point in a triplet individually, so that I can perform a calculation on each triplet set?

The other day, Matt J offered a great solution to my first problem, which was: "What is the best way to store groups of 3 neares...

3 months ago | 0 answers | 0

Question

What is the best way to store groups of 3 nearest non-zero pixels?

I would like to identify and store each set of 3 closest points (as seen in the attached image) in a separate variable. So in ...

3 months ago | 1 answer | 0

Question

Find n closest nonzero pixels for every nonzero pixel in an image

Hi, I have the coordinates of every nonzero pixel within an image (see file: pixel_coords.mat & image: tripod_branchpoints.png)...

6 months ago | 1 answer | 0

Answered

How to connect lines in a skeletonized image with arcs

It should look like the second attached image (vertex_tripods_connected.bmp). In theory, the connections cannot be straight line...

How to connect lines in a skeletonized image with arcs

It should look like the second attached image (vertex_tripods_connected.bmp). In theory, the connections cannot be straight line...

6 months ago | 0

Question

How to connect lines in a skeletonized image with arcs

Hi, I'm trying to find a way to have MATLAB connect the lines of the tripods in the first image (i.e., vertex_tripods.bmp) with...

6 months ago | 2 answers | 0