Beantwortet
moving median with variable window
Anyway, I will be very happy for any hint how to apply robust median filter on my use case, where separate parts of signal shoud...

mehr als ein Jahr vor | 0

Beantwortet
moving median with variable window
x = rand(1,6) k = [2,3,3,5,3,2]; n=numel(x); J=repelem(1:n,k); I0=1:numel(J); splitMean=@(vals,G) (accumarray(G(:),vals...

mehr als ein Jahr vor | 0

Beantwortet
Minimum CUDA driver version which works with R2024a
The driver version you need is a function of your GPU card. Why not just install the latest one as the error message suggests? ...

mehr als ein Jahr vor | 2

Beantwortet
Moving window percentile computation using Conv
See ordfilt2.

mehr als ein Jahr vor | 0

Beantwortet
Modifying arrow length based on intersection with polygon
An alternative to Mike's approach using linexlines2D() from the File Exchange, https://www.mathworks.com/matlabcentral/fileexch...

mehr als ein Jahr vor | 1

Beantwortet
Should table Indexing be Faster?
I haven't profiled it, but I would bet that the following line, from @tabular/braceReference b = t.extractData(varIndices); is...

mehr als ein Jahr vor | 1

| akzeptiert

Beantwortet
N-dimension curve fit how to
Perhaps polyfitn will help, https://www.mathworks.com/matlabcentral/fileexchange/34765-polyfitn

mehr als ein Jahr vor | 0

Beantwortet
How to speed up vectorized operations for dynamic programming
This might be a little faster. betaPZtransp=beta*PZ'; tic while err>tol && iter<=max_iter RHS = Ret + reshape(V0*bet...

mehr als ein Jahr vor | 1

| akzeptiert

Beantwortet
Is there a meaningful guideline on when to use parentheses vs square brackets vs curly brackets in writing MatLab code?
General If we forget about indexing for the moment, it becomes very simple. Function calls use parentheses, and only parenthese...

mehr als ein Jahr vor | 2

Beantwortet
Chasing what is wrong with 'dual-simplex-highs' in linprog
It doesn't like your super-small Aeq values. load('linprog_test.mat') Aeq(abs(Aeq)<1e-8)=0; linprogopt = optimset('Algori...

mehr als ein Jahr vor | 1

Beantwortet
How to log the data in the workspace without modifying the content of the for loop?
What does "log the data" mean? Do you mean you want to store it to a file on disk, or do you want to store it in some sort of ar...

mehr als ein Jahr vor | 0

Beantwortet
whether is imageInputLayer flattened?
No, an imageInputLayer does not reshape the input that it receives, as demonstrated in the following, net=dlnetwork(imageInputL...

mehr als ein Jahr vor | 0

| akzeptiert

Frage


Accessing network drives from within Matlab
I have two Windows 10 computers running Matlab 2023b on the same network. On one computer, I am able to reach a remote network d...

mehr als ein Jahr vor | 1 Antwort | 1

1

Antwort

Beantwortet
How to quantify shape similarity between two vectors.
Perhaps you could use correlation-based similarity? x1 = 0:0.1:10; Y1 = gaussmf(x1,[0.8 5 ]); Y2 = gaussmf(x1,[0.8 3 ]); Y3 ...

mehr als ein Jahr vor | 0

Beantwortet
I need to apply constrain using least square non negative function in Matlab
Use lsqlin instead.

mehr als ein Jahr vor | 0

Beantwortet
Slice of a 3D plot and projection of that function in a plane.
[x,y,yhalf]=deal(linspace(-2,2,100)); yhalf(y<0)=nan; Z = exp(-( x.^2 + y.^2')); figure, mesh(x,yhalf,Z,'FaceAlpha',1); ...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Why imregtform registration fails on similar images
Perhaps as follows, load Images g=@(z) entropyfilt(z); f=@(z) z.*(z>=1.5); im=f(g(im)); ref=f(g(ref)); ov=imref2d(size(i...

mehr als ein Jahr vor | 0

Beantwortet
How to numerically evaluate this singular integral in integral2?
As demonstrated in the comment above, the integral is theoretically non-convergent unless c>=norm([10/a,10/b]). Here is a furthe...

mehr als ein Jahr vor | 1

Beantwortet
Simply trying to find a value in the same row as my known value but in a different column.
Everything I have tried also gives me an answer of "0×1 empty double column vector," but without any value. You haven't shown...

mehr als ein Jahr vor | 0

Beantwortet
Poor performance of linprog in practice
There are some papers in the computational literature that show that if you recast a DP problem as LP problem you can achieve si...

mehr als ein Jahr vor | 0

| akzeptiert

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 1

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

mehr als ein Jahr vor | 2

| akzeptiert

Beantwortet
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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 0

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

mehr als ein Jahr vor | 1

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

mehr als ein Jahr vor | 0

Mehr laden