Answered

Plotting a graph for time and distance where i have contant velocity

x=rand(3,2); % three points d = pdist(x,'euclidean'); % distancecbetween those points v=50; %veloicty t=d/v; %time plot(x(...

Plotting a graph for time and distance where i have contant velocity

x=rand(3,2); % three points d = pdist(x,'euclidean'); % distancecbetween those points v=50; %veloicty t=d/v; %time plot(x(...

9 mois ago | 0

Answered

How to import values from a column in "for" loop?

c(j), s(j), t(j)) when j= 4 or 5 there is error ..? because c,s,t has only 3 values

How to import values from a column in "for" loop?

c(j), s(j), t(j)) when j= 4 or 5 there is error ..? because c,s,t has only 3 values

9 mois ago | 0

Answered

How to store the coordinates of polygon found from for loop.?

u can store them in cells.. using {} A=[]; this before for loop and this inside loop XX AND XY are vertices of polygons ...

How to store the coordinates of polygon found from for loop.?

u can store them in cells.. using {} A=[]; this before for loop and this inside loop XX AND XY are vertices of polygons ...

9 mois ago | 1

Answered

Fill area with random circles having different diameters

can some one do such packing with polygons ? without using delauny triagulation

Fill area with random circles having different diameters

can some one do such packing with polygons ? without using delauny triagulation

9 mois ago | 0

Answered

Converting these mathematical formulas to a matlab equation.

(x-3)./(sqrt(x.^2-3.*x+5)) ;

Converting these mathematical formulas to a matlab equation.

(x-3)./(sqrt(x.^2-3.*x+5)) ;

10 mois ago | 1

| accepted

Answered

How to generate an nxn matrix using n number of 2x2 matrices?

u just want to add stiffness matrix of each element to get n x n stiffness matrix 423601-assemble-global-stiffness-matrix

How to generate an nxn matrix using n number of 2x2 matrices?

u just want to add stiffness matrix of each element to get n x n stiffness matrix 423601-assemble-global-stiffness-matrix

10 mois ago | 0

Answered

CHANGE X AXES SCALE

if u want to see only 0 to 25 x-axis axis([0 25 0 12]);

CHANGE X AXES SCALE

if u want to see only 0 to 25 x-axis axis([0 25 0 12]);

10 mois ago | 0

Answered

splitting large data set using if function

if B is your data then C has all the sets in cell array C={}; B=rand(10,4); for k = 1 : length(B) Ck =B(k,:); C{k}=C...

splitting large data set using if function

if B is your data then C has all the sets in cell array C={}; B=rand(10,4); for k = 1 : length(B) Ck =B(k,:); C{k}=C...

10 mois ago | 0

Answered

Transforming axis. How to create a customized axis.

minus some value from x coordinates like if u have x,y data in A . A =[A(:,1)-1321 A(:,2)];

Transforming axis. How to create a customized axis.

minus some value from x coordinates like if u have x,y data in A . A =[A(:,1)-1321 A(:,2)];

10 mois ago | 0

Answered

Transforming axis. How to create a customized axis.

you want to move x-axis to middle of graph ?

Transforming axis. How to create a customized axis.

you want to move x-axis to middle of graph ?

10 mois ago | 0

Answered

Error using images.internal.morphmex

i have run the code on 2010a and 2019 pre release there is no error butonly on 2018b ...what the problem i have installed 2018b ...

Error using images.internal.morphmex

i have run the code on 2010a and 2019 pre release there is no error butonly on 2018b ...what the problem i have installed 2018b ...

10 mois ago | 0

Question

Error using images.internal.morphmex

. i have reinstalled matlab and getting error . Error using images.internal.morphmex Invalid MEX-file 'C:\Program Files\MATLA...

10 mois ago | 1 answer | 0

Answered

zigzag line to straigth and removing unwanted lines at the edges

GOT IT .. I=bwmorph(I1, 'spur', 50);

zigzag line to straigth and removing unwanted lines at the edges

GOT IT .. I=bwmorph(I1, 'spur', 50);

10 mois ago | 0

| accepted

Question

zigzag line to straigth and removing unwanted lines at the edges

may be i am not able to express my question in most technical way . i m trying to read the boundaries and i get zigzag lines.. ...

10 mois ago | 1 answer | 0

Answered

write a matlab command to find th roots of: ax^2+bx+c=0

a=1; b=2; c=3; x1 = -b +(sqrt((b^2)-(4ac)/(2a))x; x2=-b-(sqrt((b^2)-(4ac)/(2a)); disp(x1); disp(x2);

write a matlab command to find th roots of: ax^2+bx+c=0

a=1; b=2; c=3; x1 = -b +(sqrt((b^2)-(4ac)/(2a))x; x2=-b-(sqrt((b^2)-(4ac)/(2a)); disp(x1); disp(x2);

10 mois ago | 0

| accepted

Answered

is it possible to get similar size of polygons or with very less variation ?

yes it is

is it possible to get similar size of polygons or with very less variation ?

yes it is

10 mois ago | 0

| accepted

Question

how to get the boundaries of white part only

(im student of civil engineering ) i dont want to break the pixels and want to keep the quality (vector image ). i have uploade...

10 mois ago | 1 answer | 0

Question

is it possible to get similar size of polygons or with very less variation ?

https://uk.mathworks.com/matlabcentral/answers/426087-random-polygons-inside-a-semi-circle

10 mois ago | 1 answer | 0

Answered

random polygons inside a semi-circle

@bruno luong https://www.mathworks.com/matlabcentral/answers/437754-polyshapes-formed-by-intersection-of-polygons-polyshapes ....

random polygons inside a semi-circle

@bruno luong https://www.mathworks.com/matlabcentral/answers/437754-polyshapes-formed-by-intersection-of-polygons-polyshapes ....

11 mois ago | 0

Question

polyshapes formed by intersection of polygons/polyshapes

i want to make a new polyshape formed by intersection of polygons/polyshapes . i have attached the code uploaded by MR bruno ....

11 mois ago | 1 answer | 0

Question

Random polygons packing inside rectangular shape or square ?

can some one share any code related to covex polygons packing without overlap . they can intersect but not overlap .i did not fi...

11 mois ago | 0 answers | 0

Question

what is the maximum diameter of convex polygons ?

is it the maximum distance between the vertices or something else ?

11 mois ago | 4 answers | 0

Question

how can i add the two different polyshape to another varriable and then can check the overlap between them ?

is there any way out how can i get new varriable with two polyshapes ? one is circle other is polygon

11 mois ago | 2 answers | 0

Question

random non overlapping polygons packing

https://ww2.mathworks.cn/matlabcentral/answers/432772-overlapping-polygons-translation-to-non-overlapping-polygons when i try t...

12 mois ago | 0 answers | 0

Answered

overlapping polygons translation to non overlapping polygons

c(i)=polyin; AB=[XX(K),XY(K)]; A{i} = AB; TF = overlaps(c); end [R, C] = find(TF); A(R(~(R==C))) = []; for i = A ...

overlapping polygons translation to non overlapping polygons

c(i)=polyin; AB=[XX(K),XY(K)]; A{i} = AB; TF = overlaps(c); end [R, C] = find(TF); A(R(~(R==C))) = []; for i = A ...

12 mois ago | 0

| accepted

Question

overlapping polygons translation to non overlapping polygons

how can i translate the overlapping polygos to new location so that there is no overlap. A=[]; N = 20; for i=1:N X = rand...

12 mois ago | 2 answers | 0

Question

polybuffer command how to get the polygons without colours ?

i m using polybuffer command polyout3 = polybuffer(polyin,0.006667,'JointType','square'); plot(polyout2); i want to re...

12 mois ago | 1 answer | 0

Answered

I want to calculate the area of a polygonal Voronoi figure

u can try this there area r regions . sumAREAA=0; for k=1:length(r) rk=r{k}; XP = rk(:,1:2:end); YP = rk(:...

I want to calculate the area of a polygonal Voronoi figure

u can try this there area r regions . sumAREAA=0; for k=1:length(r) rk=r{k}; XP = rk(:,1:2:end); YP = rk(:...

12 mois ago | 0

Answered

How to plot a number of circles with the same radius, but the position of the circles is randomly put

ONE LAST THING CAN U FIX THEM IN SEMI CIRCLE .. ? axis([-1.1 1.1 -0.1 1.1]);

How to plot a number of circles with the same radius, but the position of the circles is randomly put

ONE LAST THING CAN U FIX THEM IN SEMI CIRCLE .. ? axis([-1.1 1.1 -0.1 1.1]);

12 mois ago | 0

Question

image generation using machine learning .suggestions required

I have images like this(attacked) .is it possible to use machine learning to learn the pattern of each black shape( there are mo...

environ un an ago | 0 answers | 0