Answered
How do I create a 2D mesh of triangular elements?
Yes. Or triplot().

5 years ago | 0

| accepted

Answered
How do I turn off predictive text?
I've changed the Automatic Completion preferences, but it's still there. There is a different Automatic Completion section for...

5 years ago | 1

| accepted

Answered
How to concatenate output of objective function for lsqcurvefit?
c0 = [ic_arg{1}(x).'; ic_arg{2}(x).'; ic_arg{3}(x).'];

5 years ago | 0

| accepted

Answered
Saving outputs of a funtion inside nested for loop in organized fashion
Instead of returning 20 separate outputs, you could have paramA return them as fields of a struct. Then you could save each outp...

5 years ago | 0

Answered
Using bsxfun to plot
Now idea why you think bsxfun should be involved. Why not just, t=linspace(-2,2,n); plot(t,signal,t,filtsig)

5 years ago | 0

Answered
is there a function that receives 3 coordinates in X-Y as a matrix and calculates its Area and environment ?
p=polyshape(yourPoints); area(p) perimeter(p) centroid(p)

5 years ago | 1

| accepted

Answered
Remove duplicate points by Uniquetol
uniquetol(xy, 1, 'ByRows', true,'DataScale',[1,1]) % or

5 years ago | 0

| accepted

Answered
Solving a large number (thousands) of different "Ax=b" equations when the matrices A are all the same small size (3x3 to 6x6), but different numbers.
If you have the Parallel Computing Toolbox, you can use pagefun(@mldivide,A,b) https://www.mathworks.com/help/parallel-comput...

5 years ago | 0

Answered
Solving a large number (thousands) of different "Ax=b" equations when the matrices A are all the same small size (3x3 to 6x6), but different numbers.
I suspect that a for loop will be fastest, but you could also try combining them into a single set of equations using, A=blkdia...

5 years ago | 0

| accepted

Answered
For loop with 2 variables
parfor k =1:N^2 [i,j]=ind2sub([N,N],k); .... end

5 years ago | 0

| accepted

Answered
Fminsearch curve fitting does not fit properly
Plotting your function in an interval around bmin shows that it is a minimum of the function you've provided. So, fminsearch did...

5 years ago | 0

| accepted

Question


Trying to understand behavior of holes in alphaShapes.
I have created the attached alphaShape object, which contains a hole. load alph_shape; shp plot(shp) I am trying to unders...

5 years ago | 2 answers | 0

2

answers

Answered
Accuracy of polygon approximation
Perhaps the Dice Coefficient would be an appropriate metric. This would be a very easy calculation if the shapes are stored as p...

5 years ago | 0

Answered
Replace loop to create a matrix
This might be a more efficient way to build arg, but I suspect that your bottleneck will be in blkdiag(). function f = denomina...

5 years ago | 1

| accepted

Answered
how to find the average of a table 366-by-6
Perhaps as follows, mean(varfun(@mean,x,'InputVariables',@isnumeric,'OutputFormat','uniform'))

5 years ago | 0

| accepted

Answered
How to draw mean value as shown in picture
Perhaps movmean() or, https://www.mathworks.com/help/curvefit/smoothing-data.html

5 years ago | 1

Answered
Using 'if' to conduct specific matrix cell operations
P2=ones(size(P)); subset=(P<1); P2(subset)=1-Pfailgrid(subset);

5 years ago | 0

| accepted

Answered
Index table with cell array
Yes, you can use ismember(...,'rows') to find the indices of the rows.

5 years ago | 0

Answered
Updating values in a matrix when corresponding variable values are updated
You can do it with some object-oriented programming trickery, but in the long run, I don't think it's going to be what you want....

5 years ago | 0

Answered
How to get rid of certain xticklabels?
h1 = plot(log2(numberOfCPUCores), speedup_1by1, '-ob'); set(h1, 'MarkerFaceColor', get(h1,'Color')); hold on; ...

5 years ago | 0

Answered
Solving a QP by minimizing multiple multidimensional vectors
If you have multiple unknown vectors x1, x2, x3,... then you also have a single unknown vector X=[x1;x2;x3;...]. So, just use qu...

5 years ago | 0

| accepted

Answered
How to set a target in the Optimisation Toolbox?
Lets say I want the Area to be not maximum but lets say 23. (or any number between 0 and max value) It sounds like you are sayi...

5 years ago | 0

| accepted

Answered
Remove decreasing data in matrix
rawdata = [1 2 2 2 3 2 4 2 5 2 4 2 3 2 2 2 1 2 2 2 3 2 4 2 5 2]; ...

5 years ago | 0

| accepted

Answered
How to set a target in the Optimisation Toolbox?
See, https://www.mathworks.com/matlabcentral/answers/1590009-how-can-i-use-the-optimization-toolbox-to-optimize-an-objective-fu...

5 years ago | 0

Answered
how to do element wise multiplication of 2 columns in array?
For example, A=randi(10,5,2) A(:,1).*A(:,2)

5 years ago | 0

| accepted

Answered
Transformation onto a fixed reference image
Yes, use the OutputView option like in htis example, https://www.mathworks.com/help/images/ref/imwarp.html#mw_28861ab4-e9d2-4b5...

5 years ago | 0

| accepted

Answered
If else condition for each iteration in "FSOLVE"
That would create discontinuity in the function. fsolve is designed to solve problems with smooth, differentiable equation funct...

5 years ago | 0

Answered
Error running optimization. Out of memory. The likely cause is an infinite recursion within the program.
This might be what you want. f0 = [-0.583676968,0.577226284,-0.010286038,0.0062175,-0.523705244,0.087625796]; unknowns=fmi...

5 years ago | 0

| accepted

Answered
How can I use a logical array to remove and replace values in a corresponding data array?
Perhaps as follows, A(TF)=nan; A=fillmissing(A,'linear');

5 years ago | 0

Answered
How to get multiple bounding boxes
If that happens, it is likely that the background black pixels are not really zero. You could use imbinarize() to get a purely b...

5 years ago | 1

| accepted

Load more