Answered
How to divide an images into two parts?
Use the save command, save filename Image1 Image2

11 days ago | 1

Answered
How to disable a toolbox
Add all your code to the top of the Matlab path using addpath https://www.mathworks.com/help/matlab/ref/addpath.html#btpdm64-5 ...

11 days ago | 0

| accepted

Answered
Making a row vector from a nxn matrix
>> BCD=num2cell(A,2); >> BCD{:} ans = 1 2 3 ans = 4 5 6 ans = 7 8 ...

12 days ago | 0

| accepted

Answered
Using a for loop to find max value for each row in matrix
Just use max() >> A=rand(1001,251 ); >> rowmax=max(A,[],2);

13 days ago | 0

| accepted

Answered
why lsqlin constraint, lsqnonneg do not answer correctly
To get reasonable results, the problem needs to have a reasonable solution.

13 days ago | 0

Answered
How to get bounding boxes around rectangular rooms which are rotated by some angle ?
You could also use this FEX file to get the vertices of each room, https://www.mathworks.com/matlabcentral/fileexchange/74181-f...

13 days ago | 0

| accepted

Answered
Numerical operations are slow on class properties versus in workspace
It is the repeated M-coded function calls that are slowing you down. Implement the whole loop in a single function call: ...

14 days ago | 0

Answered
How to find coordinates of a rotated room in a floor plan?
Use imerode to get rid of everything except the thicker lines demarcating the walls. Then use houghlines to fit line segments to...

14 days ago | 0

Answered
passing an array value to fmincon
This page talks about passing known parameters. They apply to any variables you might wish to pass, be they arrays, scalars, or ...

14 days ago | 0

Answered
Calculate radius from scatter plot
You could try using clusterdata to find the big concentration of points. Then minboundcircle from the File Exchange to get the r...

14 days ago | 1

Answered
help!! not using repmat()
Another option would be, kron(ones(row,col),arr)

15 days ago | 0

| accepted

Answered
Fit a polynimial function on a image curve
A sixth order polynomial won't give a very good fit, but here is how you could code it: load waveImage A [I,J]=find(medfilt...

16 days ago | 0

Answered
Why do I get the error "Undefined function or variable" 'getmapping' ?
Probably because getmapping() is a function that you don't have.

16 days ago | 0

Question


Edit MP4 play speed using videoReader/Writer
I have an MP4 file of a narrated Powerpoint presentation and I would like to edit the file so that it plays back at a higher def...

16 days ago | 0 answers | 0

0

answers

Answered
How to write my Matlab code so that its standalone application program takes multiple input files?
It should work just as you've shown. Just write your mcode to accept input arguments as you would write a non-deployed mfile. Se...

19 days ago | 0

| accepted

Answered
Optimization function needs to integrated in problem
No, it's just a linear equation. Expand the ln() into two terms and rewrite as σ=σ_W+kT/(rS_W )* ln⁡((1-Ka_s) - kT/(rS_W )*ln...

19 days ago | 0

Answered
How can I fill everything below the white thing line in this image?
By adapting the following smaller example, A = 1 0 0 0 0 0 0 0 0 1 0 0 ...

19 days ago | 0

| accepted

Answered
Randi(imax,m,n)
Perhaps as follows, num = uint64(randi(2^53-1,1))*2^8 +randi(2^8-1,1)

19 days ago | 0

Answered
Optimization solver equality constraints
You can use quadprog https://www.mathworks.com/help/optim/ug/quadprog.html

20 days ago | 0

Answered
Making Pairs of Indices in Matrix- Pairwise Function
It depends what Matlab data-type you consider to be the equivalent of a Python tuple. I tend to think of cell arrays as the equi...

21 days ago | 0

| accepted

Answered
I have two matrices and I would like to create a matrix containing the above threshold value of each element of both matrices
Another way, result=matrix2; idx=(matrix2<threshold); result(idx)=matrix1(idx);

21 days ago | 0

Answered
How to continue while loop if NaN value is present in cell array
Since all your arrays C{j} are the same size, it seems unnecessary to carry the data around in a cell array at all. You could ju...

21 days ago | 1

| accepted

Answered
I have two matrices and I would like to create a matrix containing the above threshold value of each element of both matrices
Is this possible without for loops? Yes. One way is as follows: mask=(matrix2>=threshold); result = matrix2.*mask + matrix1...

21 days ago | 0

| accepted

Answered
Matrix Indexing and manipulations
[A_matrix([1 2 1 4 1 2],:) , A_matrix([2 3 3 3 3 4],:)]

22 days ago | 0

| accepted

Answered
Interpolation code. How can I deal with a strange problem.
Looks like a simple, 2x2 linear equation system to me. >> w=[1, 0;1,0.93]\[16;3] w = 16.0000 -13.9785

22 days ago | 0

Answered
Why is a Number Divided by Itself Not Equal to Unity?
It depends what algorithm is used to perform complex division x./y. For example, if it is implemented as x./abs(y).^2.*conj(y), ...

22 days ago | 1

Answered
Swap double array dimensions
permute(yourArray,[1,3,2])

22 days ago | 0

| accepted

Answered
lsqcurvefit - Error using Data_fit>@(x)myfun2(x,xdata) Too many input arguments.
The second call to lsqcurvefit should be, ___ = lsqcurvefit(@E_fn,x0,xdata,ydata,lb,ub); or ___ = lsqcurvefit(myfun2,x0,xdata...

23 days ago | 0

| accepted

Answered
what is wrong in this? how to use isinteger?
To test whether a variable is integer-valued, you would do y==round(y) isinteger is for something completely different. It sim...

23 days ago | 0

| accepted

Answered
How to find the position of a number in an array?
There is nothing wrong with your code as long as there are elements in Y that are exactly equal to 8 >> Y=[8 1 2 5 8 6]; >> k=...

24 days ago | 0

Load more