Answered

How to get the coordinates of each room in a floor plan image through object identification method?

One approach is to close all of the doors morphologically: load('Walls') e=ones(1,105); A=imclose(imclose(~Image,e),e.');...

How to get the coordinates of each room in a floor plan image through object identification method?

One approach is to close all of the doors morphologically: load('Walls') e=ones(1,105); A=imclose(imclose(~Image,e),e.');...

19 Tage ago | 0

| accepted

Submitted

Constrained minimum L1-norm solutions of linear equations

Finds least L1-norm solutions to linear equations C*x=d subject to linear and/or integer constraints.

20 Tage ago | 14 downloads |

Answered

How to get the coordinates of each room in a floor plan image through object identification method?

The Computer Vision Toolbox has a few corner detection routines, https://www.mathworks.com/help/vision/ref/detectharrisfeatures...

How to get the coordinates of each room in a floor plan image through object identification method?

The Computer Vision Toolbox has a few corner detection routines, https://www.mathworks.com/help/vision/ref/detectharrisfeatures...

20 Tage ago | 0

Answered

Function name has to be same as file name?

When creating functions, aren't the functions supposed to have the same names as the file? No. If your mfile is a function file...

Function name has to be same as file name?

When creating functions, aren't the functions supposed to have the same names as the file? No. If your mfile is a function file...

21 Tage ago | 0

| accepted

Answered

Create polygon from images

It looks like a good candidate for watershed segmentation. https://www.mathworks.com/company/newsletters/articles/the-watershed...

Create polygon from images

It looks like a good candidate for watershed segmentation. https://www.mathworks.com/company/newsletters/articles/the-watershed...

21 Tage ago | 0

Answered

Random complete and in complete numbers

To randomize uniformly over an interval [lower, upper], you would do, out=rand(___)*(upper-lower)+lower

Random complete and in complete numbers

To randomize uniformly over an interval [lower, upper], you would do, out=rand(___)*(upper-lower)+lower

21 Tage ago | 0

| accepted

Answered

1D griddedInterpolant of a vector of query points.

One way: rows=1:2; gI= griddedInterpolant({rows,t},f); F=@(t)gI({rows,t}); >> F(3) ans = 0.1411 -0.9897 ...

1D griddedInterpolant of a vector of query points.

One way: rows=1:2; gI= griddedInterpolant({rows,t},f); F=@(t)gI({rows,t}); >> F(3) ans = 0.1411 -0.9897 ...

21 Tage ago | 0

Submitted

spatialgraph2D

Creates a graph object with 2D spatial locations associated with the nodes

22 Tage ago | 12 downloads |

Answered

Add Interpolated Vector to Matrix

Z = [150:-1:1]; Nq = zeros(length(ADCP.t)); t=1:0.25:100; clear Ninterp for i=length(t):-1:1 time_in = tStart+...

Add Interpolated Vector to Matrix

Z = [150:-1:1]; Nq = zeros(length(ADCP.t)); t=1:0.25:100; clear Ninterp for i=length(t):-1:1 time_in = tStart+...

23 Tage ago | 0

| accepted

Answered

Need to solve an singlevariable integral of functions of two variables, and get answers as functions

This function @(t) K_mex_p(t).*CC22(t,J) needs to return a numeric value for every given t. It is returning a symbolic value, ...

Need to solve an singlevariable integral of functions of two variables, and get answers as functions

This function @(t) K_mex_p(t).*CC22(t,J) needs to return a numeric value for every given t. It is returning a symbolic value, ...

24 Tage ago | 0

Answered

Solving set of 5 non-linear simultaneous equations using fsolve

You should get rid of all the square roots on the unknown parameters. Write the equations in terms of new variables like z1=sqrt...

Solving set of 5 non-linear simultaneous equations using fsolve

You should get rid of all the square roots on the unknown parameters. Write the equations in terms of new variables like z1=sqrt...

24 Tage ago | 1

Answered

Finding the standard deviation for every single value in a matrix

X=cat(3, X1,X2,X3,X4,X5,X6,X7,X8,X9,X10); %It was a mistake to create 10 separate matrices. MeansX=mean(X,3), StdX = std(X...

Finding the standard deviation for every single value in a matrix

X=cat(3, X1,X2,X3,X4,X5,X6,X7,X8,X9,X10); %It was a mistake to create 10 separate matrices. MeansX=mean(X,3), StdX = std(X...

24 Tage ago | 0

| accepted

Answered

Solve functions symbolically, and getting answers as functions, solve() fsolve()

C_11_0 = matlabFunction( result.x ) ; C_12_0 = matlabFunction( result.y ) ;

Solve functions symbolically, and getting answers as functions, solve() fsolve()

C_11_0 = matlabFunction( result.x ) ; C_12_0 = matlabFunction( result.y ) ;

24 Tage ago | 0

Answered

Intlinprog can not find feasible solution even though there is one

This version finds a solution. Basically, I pre-normalize max(Asen(:)) and max(a(:)) to 1 so that the constraint matrix elements...

Intlinprog can not find feasible solution even though there is one

This version finds a solution. Basically, I pre-normalize max(Asen(:)) and max(a(:)) to 1 so that the constraint matrix elements...

26 Tage ago | 1

Answered

Intlinprog can not find feasible solution even though there is one

Aside from the error mentioned by Mario, the line A = [Atemp, -M*Atemp]; is overwriting your original A matrix (the one cont...

Intlinprog can not find feasible solution even though there is one

Aside from the error mentioned by Mario, the line A = [Atemp, -M*Atemp]; is overwriting your original A matrix (the one cont...

28 Tage ago | 0

Answered

How to put 2D image in 3D space

This FEX file looks applicable, https://www.mathworks.com/matlabcentral/fileexchange/28581-imsurf-3d-images

How to put 2D image in 3D space

This FEX file looks applicable, https://www.mathworks.com/matlabcentral/fileexchange/28581-imsurf-3d-images

30 Tage ago | 0

Answered

fmincon constrain a row to be fixed

Yes, you can simply not treat them as unknowns. Instead, rewrite the problem in terms of a smaller matrix z containing the unkno...

fmincon constrain a row to be fixed

Yes, you can simply not treat them as unknowns. Instead, rewrite the problem in terms of a smaller matrix z containing the unkno...

etwa ein Monat ago | 0

| accepted

Answered

Creating Multiple Arrays within a For Loop

You wouldn't do that with a loop. You would just use vector arithemtic, eps0=rand(3,1); %fake RHS data kappa=rand(3,1); z=ran...

Creating Multiple Arrays within a For Loop

You wouldn't do that with a loop. You would just use vector arithemtic, eps0=rand(3,1); %fake RHS data kappa=rand(3,1); z=ran...

etwa ein Monat ago | 0

| accepted

Answered

Nonlinear Optimization problem ( If statement)

To do that, each x(i) must have finite upper and lower bounds L(i)<=x(i)<=U(i). You also need to introduce additional unknown b...

Nonlinear Optimization problem ( If statement)

To do that, each x(i) must have finite upper and lower bounds L(i)<=x(i)<=U(i). You also need to introduce additional unknown b...

etwa ein Monat ago | 0

| accepted

Answered

Most Efficient Way to Construct the Matrices to Extract the Lower and Upper Triangle from a Vectorized Matrix

Another approach to consider is to use my MatrixObj class https://www.mathworks.com/matlabcentral/fileexchange/26611-on-the-fly...

Most Efficient Way to Construct the Matrices to Extract the Lower and Upper Triangle from a Vectorized Matrix

Another approach to consider is to use my MatrixObj class https://www.mathworks.com/matlabcentral/fileexchange/26611-on-the-fly...

etwa ein Monat ago | 1

Answered

Speed up Matrix multiplication

C=sum( A.*reshape(B,1,3,[]),2);

Speed up Matrix multiplication

C=sum( A.*reshape(B,1,3,[]),2);

etwa ein Monat ago | 1

| accepted

Answered

Equality contrains ignored by fmincon

You cannot use the Aeq, beq constraint parameters to force exact equality. You could instead try setting the upper and lower bou...

Equality contrains ignored by fmincon

You cannot use the Aeq, beq constraint parameters to force exact equality. You could instead try setting the upper and lower bou...

etwa ein Monat ago | 0

Answered

Minimize function with multiple variables with absolute value

If e is positive, rewrite this as a linear program with additional unknowns ,

Minimize function with multiple variables with absolute value

If e is positive, rewrite this as a linear program with additional unknowns ,

etwa ein Monat ago | 0

Answered

how to generate a random array list with fixed sum ?

This FEX submission would be applicable https://www.mathworks.com/matlabcentral/fileexchange/9700-random-vectors-with-fixed-sum...

how to generate a random array list with fixed sum ?

This FEX submission would be applicable https://www.mathworks.com/matlabcentral/fileexchange/9700-random-vectors-with-fixed-sum...

etwa ein Monat ago | 0

Answered

How to get linprog to not ignore x0 R2019a

If your initial x0 is feasible, one way you might benefit from it is to add the inequality constraint f(:).'*x(:) <= f(:).'*x0 ...

How to get linprog to not ignore x0 R2019a

If your initial x0 is feasible, one way you might benefit from it is to add the inequality constraint f(:).'*x(:) <= f(:).'*x0 ...

etwa ein Monat ago | 0

Answered

Variable distribution for a parallel image acquisition

Seems like you could use a parfor loop instead: parfor k=1:numel(img_temp) bw_seg_worker{k} = myWatershedFun(img_temp{k},...

Variable distribution for a parallel image acquisition

Seems like you could use a parfor loop instead: parfor k=1:numel(img_temp) bw_seg_worker{k} = myWatershedFun(img_temp{k},...

etwa ein Monat ago | 0

| accepted

Answered

How can I save my result in a loop when it is an matrix

Should the left hand side be S{i,j,k} ?

How can I save my result in a loop when it is an matrix

Should the left hand side be S{i,j,k} ?

etwa ein Monat ago | 0

Answered

improve and speed up parfor loop

We can't see all the operations in your loop, but the ones we can see are pretty basic ones. Operations as common and basic as t...

improve and speed up parfor loop

We can't see all the operations in your loop, but the ones we can see are pretty basic ones. Operations as common and basic as t...

etwa ein Monat ago | 0

Question

Union() operation adds hole to polyshape

I have attached a file containing a vector of 11 polyshape objects >> load('polyshape_vector.mat') >> whos pgon Name ...

etwa ein Monat ago | 0 answers | 0