Answered
Fit a vector to matrix distribution
Can I just plug my new matrix into this and expect a distribution of values out for f1 and D1? I assume you already tried this ...

21 días ago | 0

Answered
Extract and show non zero pixels of a 2D image in MATLAB
The question seems very open ended. Perhaps as follows, spy(ima)

22 días ago | 0

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.');...

22 días 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.

23 días 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...

23 días 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...

24 días 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...

24 días 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

24 días 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 ...

24 días ago | 0

Answered
Filling a vector with ones based on a given value
B=(A(:)>=1:6)

24 días ago | 0

Submitted


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

25 días ago | 12 downloads |

Thumbnail

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+...

26 días 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, ...

27 días 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...

27 días 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...

27 días 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 ) ;

27 días 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...

29 días 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...

alrededor de 1 mes 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

alrededor de 1 mes 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...

alrededor de 1 mes 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...

alrededor de 1 mes 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...

alrededor de 1 mes 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...

alrededor de 1 mes ago | 1

Answered
Speed up Matrix multiplication
C=sum( A.*reshape(B,1,3,[]),2);

alrededor de 1 mes 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...

alrededor de 1 mes ago | 0

Answered
Minimize function with multiple variables with absolute value
If e is positive, rewrite this as a linear program with additional unknowns ,

alrededor de 1 mes 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...

alrededor de 1 mes 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 ...

alrededor de 1 mes 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},...

alrededor de 1 mes 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} ?

alrededor de 1 mes ago | 0

Load more