Question

2D Random path within a unit square

Hi all, I want to generate a random path within a unit square and get the x,y coordinates of n=1000 points on it. start point a...

2 years ago | 2 answers | 0

Question

Random path coordinates in 2D within a unit square

Hi all, I want to generate a random path within a unit square and get the x,y coordinates of 1000 points on it. Can you suggest ...

2 years ago | 2 answers | 0

Question

overlap between between multiple circles using circcirc

Hi all, I have 10 circles with random center positions but with same radius (but the radius, R= r1:r2). I want to find the in...

2 years ago | 1 answer | 0

Question

finding overlapping area between two random contours

Hi all, I have x and y coordinates of closed contours with random shapes. I want to find the overlapping area in between any of...

2 years ago | 1 answer | 0

Question

calculating angle between three points

angle = atan2(abs(det([P2-P0;P1-P0])),dot(P2-P0,P1-P0)); I have seen that the angle between three points can be calculated a...

2 years ago | 2 answers | 0

Question

points lying on a line from a particular distance

Hi All, In my matlab program , I find two points from solving the line equation (given a point and the angle) and the distance ...

2 years ago | 2 answers | 0

Question

calling an array which is initialized inside an if statement + for loop, outside the loop

hi, i have a if statement and it runs a for loop in each case where it is true and false. An array is initialized and assigned ...

2 years ago | 1 answer | 0

Question

points lying inside a polygon and a circle

How can I find the number of point lies inside both a circle and a polygon (the point should lie in the mutual/overlapping area ...

2 years ago | 2 answers | 0

Question

changing the location of num2str

Hi, I am using the following to illustrate the index of the (x,y) location inside a polygon. text(x(i),y(i),num2str(i) With t...

2 years ago | 2 answers | 0

Question

num2str font size

Hi, can someone tell me how to increase the font size when using num2str? ex:text(x(i),y(i),num2str(i))

2 years ago | 2 answers | 0

Question

Error:Index exceeds matrix dimensions.

I have two arrays; onpointX1 = NaN NaN NaN NaN NaN NaN NaN onpointX2 = NaN NaN ...

2 years ago | 1 answer | 0

Question

How to create an array which changes with each iteration of a loop?

How to create an array which changes with each iteration of a for loop? for example; polyX(i)=horzcat(X2(i),X1(i+1),V(i+1));...

2 years ago | 1 answer | 0

Question

Problem in if-else if-else structure

Hi, I have written the following program. But it does not output the result I get from manual calculations. Perhaps I have gone...

2 years ago | 1 answer | 0

Question

eliminating NaN values from an array

Hi, does someone know how to eleiminate NaN values from an array? For example I have an array [NaN 0.6451 NaN 0.8339...

2 years ago | 1 answer | 0

Question

intersection points between random polygon and a circle

Hi, I have a random polygon (with known coordinates of the vertices) and a circle(with know center coordinates and center). I w...

2 years ago | 1 answer | 0

Question

why do i get the following error when using azimuth?

When I enter the azimuth command as in the following example, I get the following error. azimuth(-65.226,125.5,-65.236,125....

3 years ago | 0 answers | 0

Question

Finding a Best Distribution fit

Hi all, I want to find a Matlab tool/code to find the best distribution fit to my empirical data. I have tried allfitdist and f...

3 years ago | 0 answers | 0