Réponse apportée
How can i find the dy/dx of the differantial equation
"(My Code is correct)" To me it's not. See below for the correction (the problem is I can't see it's change the solution after ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
2D moving sum of a matrix
Assuming A is your array, w is the window size % testexample A=randi(10,5) movsum(movsum(A,w,1),w,2) % or conv2(A, ones...

presque 6 ans il y a | 2

| A accepté

Réponse apportée
How to avoid effect of number of extra zeros after decimal point on the equality between two arrays?
"How do I check the equality between the two arrays generated in such a manner? " tol = 2*eps(norm(y1,Inf)); norm(y1-y2,Inf)<=...

presque 6 ans il y a | 2

| A accepté

Réponse apportée
Given a couple of vectors with priorities, is there a fast built-in function to find the index of the largest value?
p1 = [1, 9, 3, 8, 4, 9, 1, 9, 5, 9]; % given p2 = [5, 15, 6, 7, 10, 10, 5, 15, 1, 15]; % given p3 = [1, 25, 3, 4, 11,...

presque 6 ans il y a | 0

Réponse apportée
computing error on least square fitting
Can i claim that the residual which is norm of (Ax-b)/b No make it norm(A*x-b) / norm(b)

presque 6 ans il y a | 0

Réponse apportée
Smooth data to get the best approximation.
Here is what my ftting tool gives load('InputData_SmoothData.mat') pp=BSFK(XX,YY); % FEX file plot(XX,YY); plot(XX,ppva...

presque 6 ans il y a | 0

Réponse apportée
find strings that contains a specific number of a substrings
cellfun(@(s) sum(s=='a')==2, str)

presque 6 ans il y a | 0

| A accepté

Réponse apportée
fminunc gets first-order optimality of zero on iteration 0, does not find optimum
Again the step you tried might not be the step FMINUNC selects. It has a bunch of decision tree behind FMINUNC. I don't know why...

presque 6 ans il y a | 0

Réponse apportée
How do i multiply 2 increasing variables
v0 = (10:1:20); theta = (30:1:40); v0_x = v0.*cosd(theta.'); % horizontal .* vertical vectors v0_y = v0.*sind(theta.');

presque 6 ans il y a | 0

Réponse apportée
GUIDE Handle not updating
Try to put this [handles.Antenna(:).Info] = deal(readAntenna(selected,currDir)); in antennaId_Callback. (NOTE: You must call ...

presque 6 ans il y a | 0

Réponse apportée
How to sort a array of matrix based on the maximum value
dmax = cellfun(@max, D); dmax(1) = Inf; [~,i] = sort(dmax,'descend'); D = D(i);

presque 6 ans il y a | 0

| A accepté

Réponse apportée
fminunc gets first-order optimality of zero on iteration 0, does not find optimum
If your gradient is 0, then your FEM returns the exact same result for two different values of YM. This can be created by many ...

presque 6 ans il y a | 0

Réponse apportée
interpolating the NaNs in Cell array - 180x1
y = fillmissing(y,'linear')

presque 6 ans il y a | 1

Réponse apportée
Binning regions of a 2D matrix slices (and extending this into the third dimension)
This assumes the first/second dimensions of your matrix are divisible by 32 % Test matrix A=rand(512,128,1200); binsz = 32;...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Vectorization of For loop
d = b(:,:)*a(:)

presque 6 ans il y a | 0

Réponse apportée
Generating vector r of random noise
r = rand(1,100)*0.2 - 0.1

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Going back to original matrix
[~,B] = ismember(L,A,'rows')

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Graph is Blank ? why?
Try to add this after the statement of loading the file ich=fillmissing(ich,'nearest') and see it it fixes the issue.

presque 6 ans il y a | 0

Réponse apportée
how to find index of string using AND operator when adding conditions
Your description is not clear to me so I give two versions idx = find(ismember(zz, {'A' 'B'})); or idx = find(ismember(zz, 'A...

presque 6 ans il y a | 1

Réponse apportée
Strange behaviour computing l1 norm of rows of a matrix
Who build this sparse matrix B? If it's build from external source it can be not-valid. I believe there is a tool on FileExchan...

presque 6 ans il y a | 3

| A accepté

Réponse apportée
Wrong Hessian output in fminunc
I guess the hessian is estimated from BFGS formula, that needs more than 1 FMINUNC iteration. In you case the minimum is reached...

presque 6 ans il y a | 0

Réponse apportée
Undefined function 'ne' for input arguments of type 'table'.
Filefolder = find(table2array(Folderlinks)~="")

presque 6 ans il y a | 0

Réponse apportée
y = randsample(population,k)
TMW never mentions it officially, but it's Fisher-Yates shuffle algorithm (source https://uk.mathworks.com/matlabcentral/answe...

presque 6 ans il y a | 0

Réponse apportée
Standard deviation for a field inside a field?
arrayfun(@(s) std(s.BO.circle), structarray)

presque 6 ans il y a | 1

| A accepté

Réponse apportée
find indicies of maximum and minmum elements of an array in its each segmented smaller arrays, plus mean
Test example A=1:100; indexA=[8 16 30 37 43 48 66 71 76 81 86 91 97]; Code I = zeros(siz...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
find minumum indices of one array in another array
A= [ 47 100 153 207 261 314 368 422 474 527 581 635 687 741 794 847 900 954 1007 1060]; B=[3...

presque 6 ans il y a | 0

Réponse apportée
Accessing Elements in a 3D matrix using Linear Indexing ?
Given sz = [m,n,p] ans linidx is the linear index of an element, here is one way of computing the subindexes (row, col, page). T...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Create surface consisting of two implicitly surfaces
"Can anyone help me with this question?" Not clear to me what exactly is the question. If you have two implicit equations for ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
interpn vs griddata: how are results different?
Mathematical, in short the difference is INTERPN uses tensorial linear function on nd-hypercube that enclose the query point. ...

presque 6 ans il y a | 0

Charger plus