Answered
Can we specify an "outward" direction to normal obtained from pcfitplane approach?
I doubt you can, but it shouldn't matter. If the normal is pointing the wrong way, just post-process the fit by flipping its dir...

3 maanden ago | 0

Answered
Out of memory when solving large system of non-linear equations (fsolve, fminunc, ...)
I have more then 50000 variables. And ideally, I still want to scale up to number of variables. This means your Jacobian matrix...

3 maanden ago | 1

Answered
Can I 'initialize' a handle object in such a way that isvalid(object) would return false?
One way: classdef ExampleClass < handle properties MyHandle end methods function...

3 maanden ago | 2

| accepted

Answered
How can I have the middle data set during the fitting process by lsqcurvefit?
Use the OutputFcn and/or the PlotFcn options, https://www.mathworks.com/help/optim/ug/lsqcurvefit.html#buuhcjo-options

3 maanden ago | 0

Answered
Why does the Stereo Camera Calibrator App provide different results on different MATLAB versions?
LIkely because the patterns are too similar across images, like the error message says. This would lead to ill-conditioning of t...

3 maanden ago | 0

Answered
Error using nlinfit (Check FunVals)
For one thing, y = interp1(t,y(:,7),x1,'spline','extrap'); % cumulative reported cases For another, some sort of bounds or con...

3 maanden ago | 0

Answered
Why is the jacobian function so slow for calculating jacobian matrix with many variables?
Use matlabFunction to compute the jacobian from symbolic to numerical form, so that when it comes time to use it repeatedly, it ...

3 maanden ago | 0

Answered
Different data processing depending on the spatial region of the points
Sure. Use inpolygon to detect in which region a given (x,y) point lies and compute the summation of mx variables accordingly.

3 maanden ago | 0

Answered
Binning matrix data (negative and positive decimals): mean of each 100 rows and create a new matrix
Using sepblockfun() from, https://www.mathworks.com/matlabcentral/fileexchange/48089-separable-block-wise-operations B=sepblo...

3 maanden ago | 1

Answered
Deep learning: predict and forward give very inconsistent result with batch normalisation
To get agreement, you need to allow the trained mean and variance to converge: numLayer = 9; numNeurons = 80; layers = featur...

3 maanden ago | 0

Answered
Cannot figure out how to fit a complicated custom equation.
I recommend using fminspleas, downloadable from, https://www.mathworks.com/matlabcentral/fileexchange/10093-fminspleas for th...

3 maanden ago | 0

Answered
How does dlgradient handle two output layers?
Along the lines of what @Catalytic said, it is hard to envision how you are trying to use dlgradient without seeing that code. A...

3 maanden ago | 1

| accepted

Answered
how to extract the learned features from a dlnetwork
featureSet = forward(net,trainData,'Outputs',net.Layers(181).Name);

3 maanden ago | 0

Answered
Is there a setting to move labels on a plot closer
You can use the axis label text object porperties to move them around, e.g., h=gca; h.XLabel.Position(end)=h.XLabel.Position(e...

3 maanden ago | 0

| accepted

Question


When did the syntax for linprog change
At one point, the input syntax for linprog was x=linprog(f,A,b,Aeq,beq,lb,ub,x0,options) but now (R2023b) I see that it has c...

3 maanden ago | 2 answers | 0

2

answers

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.

3 maanden ago | 6 downloads |

Answered
The issue of optimization (minimization) of the average relative error between experimental and calculated data
If you download minL1lin from https://www.mathworks.com/matlabcentral/fileexchange/52795-constrained-minimum-l1-norm-solutions-...

3 maanden ago | 0

| accepted

Answered
How can I efficiently save and access large arrays generated in nested loops?
I used the following given method to save the data, and it produced an 11 GB file, which seems very large. The memory consumpti...

3 maanden ago | 0

| accepted

Answered
Why ILP Solver Switching to Branch-and-Bound?
Assuming you are using intlinprog, it will always uses the branch-and-bound algorithm at some stage of the processing (not sure...

3 maanden ago | 0

| accepted

Answered
How to average across tables in a cell
AvgTb=Tb{1}; AvgTb{1}{:,:}=(Tb{1}{:,:}+Tb{2}{:,:}+Tb{3}{:,:})/3;

3 maanden ago | 0

| accepted

Answered
Detecting circles in an image to measure inner and outer diameter
Because of the angle of the camera, circular shapes like the ones you are looking for are imaged as ellipses. Since imfindcircle...

3 maanden ago | 0

Answered
Find strings within other strings then pull data from that point
fileContent = fileread('P0300.txt'); prefix="01 3E"; e=" "+digitsPattern(2); pattern = prefix+e+e+e; matches = extractAf...

3 maanden ago | 0

Submitted


Array Concatenation with Implicit Expansion
Versions of cat(), horzcat(), and vertcat() that support implicit expansion

3 maanden ago | 4 downloads |

Answered
Finding the closest coordinate from a surface plot based on a X, Y location
F=griddedInterpolant({Slab_strike.x,Slab_strike.y},Slab_strike.z,'linear','nearest'); Strike = F(lon_GMM,lat_GMM);

3 maanden ago | 0

Answered
Is it possible to find the line-of-sight for coarsely spaced and uneven terrain data points?
You coulduse linexline2d from this FEX post, https://www.mathworks.com/matlabcentral/fileexchange/93470-intersections-of-multi...

3 maanden ago | 0

Answered
Split matrix into N Equal Parts by rows
You can also use mat2tiles, https://www.mathworks.com/matlabcentral/fileexchange/35085-mat2tiles-divide-array-into-equal-sized-...

3 maanden ago | 0

Answered
quadprog output: this problem is non-convex
I think you probably should report it as a bug, but a possible workaround would be to approximate the original problem with ineq...

3 maanden ago | 0

| accepted

Answered
How to change in marker size in the global legend?
You will probably have to use legendflex from the file exchange, https://www.mathworks.com/matlabcentral/fileexchange/31092-leg...

3 maanden ago | 1

Answered
How to generate vector with non-linear spacing?
a=-1; b=+1; d=1/(b-a)^2; y=d*randn(1,500); x=sort(y+(a+b)/2); stem(x,x.^0); xlim([a,b])

3 maanden ago | 0

Load more