Answered
selecting units for (1) scaling of variable and (2) condition number minimization
You are free to translate as well as scale your optimization variables (or make any other nonlinear 1-1 transformation that migh...

3 years ago | 0

Answered
Implicit plot not working.
warning off fimplicit(...) warning on

3 years ago | 0

Answered
Find minimum consecutives in an optimvar
It's going to be a nonlinear integer objective function, which means the solver it's going to choose is ga. You should save your...

3 years ago | 1

Answered
Does matlab have any catenary curve fitting toolbox ?
fit lsqcurvefit

3 years ago | 1

Answered
Eigenvalue problem optimized with lqsnonlin
% M matrix M = diag([1e3, 1e3, 1e3, 1e5, 1e5, 1e5]); M(1,4) = 100; M(4,1) = 100; M(1,5) = 150; M(5,1) = 150; M(2,6) = 10; M(6...

3 years ago | 0

| accepted

Answered
correct Creation of a 3D AlphaShape from Matrix
This might be what you want, but I can't tell for sure. It sounds like you're just trying to do a trisurf plot. load testfile.m...

3 years ago | 0

Answered
How to prove that a destructor must be defined for the Value classes
How can I prove that Value classes require users to build a Destructor function You cannot prove this, because it is false. Val...

3 years ago | 0

Answered
How to obtain a function through 3d points
I would like to obtain the function of a 3D curve (in my case, a helix) that fits a list of points of (x, y, z) coordinates The...

3 years ago | 1

Answered
Difference between 2 images?
You haven't really given us a clear idea what is unknown or what the challenge is. For example, it is not clear whether you know...

3 years ago | 1

Answered
how to preferentially compute vector products rather than matrix products
Is there any way to change this setting without bracket? I doubt there is, but it's the kind of thing that should probably be h...

3 years ago | 0

| accepted

Answered
Edge Detection in a 2D Matrix
% a logical image mask = imread('tinyblobs.png'); outerboundary = imdilate(mask,strel('disk',1))&~mask; imshow(mask+2*out...

3 years ago | 2

Answered
deleting all rows from column 1 with duplicates in column 2.
setdiff(Column1,Column2)

3 years ago | 0

| accepted

Answered
Correct homograph or projective transformation of an inclined image
You need 4 non-colinear landmarks in the image, for which you know the real-world coordinates. Then you can use fitgeotrans or f...

3 years ago | 0

Answered
i want to get adjacency matrix of a network
Easier: function adj_matrix = generate_adjacency_matrix(n, p) adj_matrix=triu(rand(n)<p,1); adj_matrix=adj_matrix+a...

3 years ago | 0

Answered
Flipping the elements of a vector
First of all, I hope it is clear that you would never really flip a vector using either of the functions you've created. You wou...

3 years ago | 0

Answered
Edge and corner detection using Hough Transform
Because you are detecting edges/corners of a simple convex polygon, I would recommend downloading pgonCorners, https://www.math...

3 years ago | 1

| accepted

Answered
How to extract matrix elements corresponding to a logical matrix?
[I,J]=find(A==2); Q=A(min(I):max(I), min(J):max(J));

3 years ago | 1

Answered
How to extract matrix elements corresponding to a logical matrix?
P=(A==2); Q=A(any(P,2), any(P,1))

3 years ago | 1

| accepted

Answered
how to plot 3d oval shape with 81 nodes
An "oval" is a loose term. If you mean an ellipsoid, then you could use this FEX download, https://www.mathworks.com/matlabcen...

3 years ago | 0

Answered
Efficiently moving values in a 3-dimensional array
It will be much more efficient if you use the data ordering my_array = rand(n_columns,n_rows, n_populations) I will assume you'...

3 years ago | 0

| accepted

Answered
Efficient summing of parts of an array
I would recomend that you maintain the 4D array in ndSparse form instead, https://www.mathworks.com/matlabcentral/fileexchange/...

3 years ago | 0

| accepted

Answered
Angle between a vector and xy, xz, and yz planes
P1=[12,14,78]; Angles = 90 - acosd(normalize(flip(P1),'n'))

3 years ago | 2

Answered
Indexing in nested loops x 3
You are using '==' in several places in your code. When you do so, you must remember the limitations of floating point math, 0....

3 years ago | 0

| accepted

Answered
find duplicated rows in matlab without for loop
[~,I]=unique(x,'rows'); locations=setdiff(1:height(x),I) %locations of duplicate rows

3 years ago | 0

| accepted

Answered
While using fit function, how to make sure the generated fit is only of the range of data points ?
A fit does not have an inherent "range". Once the fit is computed, you can plot it over any range of x values that you wish, e.g...

3 years ago | 1

| accepted

Answered
Get separate index from a column with separate conditions
Remember, you are in a world of finite precision computers... ftol=@(t) abs(TIME-t)<smallnumber; %compare to within a tole...

3 years ago | 0

| accepted

Answered
Include all possible combinations in loop?
%% 'ConcreteData' (matrix 1030x8) R2_all = (value1,value2,value3,value4,value5,value6,value7,value8) %%pre-defined values exit...

3 years ago | 0

| accepted

Answered
How can I turn xyz position data with a hole into a closed surface to do more sophisticated lighting and transparency settings?
and my best attempt at a surface using boundary() You could try alphaShape instead. Choose the alpha radius to be slightly larg...

3 years ago | 0

| accepted

Load more