Answered
How to Remove Tail from Segmented Circle
Here is a similar tail-removal problem: https://www.mathworks.com/matlabcentral/answers/2035444-poor-results-for-neural-network...

2 years ago | 0

Answered
How to calculate the Jaccard Index of two sets of points (x,y,z)
data1 = table2array(readtable('100 points.xlsx')); data2 = table2array(readtable('69296 points.xlsx')); jaccardIndex = heigh...

2 years ago | 0

| accepted

Answered
Identifying straight line & intersection with the curve from the binary image
load BWimage C=bwareafilt(BW&~imopen(BW,ones(1,8)),1); [I,J]=find(C); x=mean(J); y=max(I); %intersection coordinates ...

2 years ago | 1

Answered
Do sfit and cfit objects carry the input x,y,z data? If not, why do they consume so much memory?
Never mind. I see now that the memory consumption is on ly 3.3KB, not MB. And I see from the test below that the data size does ...

2 years ago | 0

| accepted

Answered
Use reshape to isolate elements of kron product
You can use blkReshape from this FEX download https://www.mathworks.com/matlabcentral/fileexchange/115340-block-transposition-p...

2 years ago | 0

| accepted

Answered
Compute sensitivity coefficient from numerical gradient
I have no background in R. However, if you are trying to take the numerical gradient of a function, there is no native Matlab fu...

2 years ago | 0

Answered
Unable to perform assignment because the left and right sides have a different number of elements.
Undoubtedly, it is because (k1v +k2v)*dt/2 is a vector, whereas your code pretends that it is a scalar. You should stop the code...

2 years ago | 0

Answered
Find zeropoints with interpolation
x = linspace(0, 30, 100); y = 80*sin(2*pi/5*x); xq=linspace(min(x),max(x),numel(x)*1000); yq= interp1(x,y,xq,'cubic'); cro...

2 years ago | 0

| accepted

Answered
I need help with cubic splines containing pre existing conditions
e=0:2; xq=linspace(0,2,20); yq=spline(e,[1,e,1],xq); plot(e,e,'o',xq,yq,'.'); legend('Control Points','Interpolated','Loc...

2 years ago | 0

Answered
How allocate a matrix to grids?
You could have a 4 dimensional array A=repmat(eye(2) ,1,1,10,14)

2 years ago | 0

Answered
Need a help with a code to check if a circle in a image is closed or not
You could also use regionprops(kk,'EulerNumber'). It will be zero if the circle is whole. load circles subplot(121); imshow(...

2 years ago | 0

| accepted

Answered
cell2mat error in arraycell
load Check xx=logical([Sis{:}]')

2 years ago | 0

| accepted

Answered
cell2mat error in arraycell
load Check xx=cellfun(@logical,Sis)

2 years ago | 1

Answered
Need a help with a code to check if a circle in a image is closed or not
I would just use imfill(__,'holes'). If there are any breaks in the boundaries, it will fail to fill the circle.

2 years ago | 0

Answered
fmincon does not respect MaxIter
Now you see that from iteration 26 the solution is really good with 4-5 digits of accuracy, so whay TolX=0.01 fails? Remember ...

2 years ago | 0

| accepted

Answered
Interpolation using for loop
You don't need a for-loop to interpolate successive temp(i,:). Just do, T = interp1(z_sensor, temp', z_mesh ,'linear');

2 years ago | 0

| accepted

Answered
I have a problem with the convergence of fsolve ?
Because you only have 3 unknowns, you could you could do a grid search for the solution(s). Or use contour3 to find the zero lev...

2 years ago | 0

Answered
I have a problem with the convergence of fsolve ?
Your equations look like polynomials of rather large degree, at least 8. The solutions of high order polynomials are known to be...

2 years ago | 1

| accepted

Answered
Sharing large structure with nested functions with function handles increase main function overhead?
where I edit the model states It is the editing of the variable contents that incurs time, not the passing of them to functions...

2 years ago | 0

| accepted

Answered
difference between movmean and movavg
To name just a few differences, movavg requires the Financial Toolbox while movmean does not movavg can process Financial Tool...

2 years ago | 0

Answered
Dsolve gives extra term
syms y(x) eqn = diff(y,x,3)+81*diff(y,x) == 3*x+8; ytemp(x) = dsolve(eqn); ysol(x)=dsolve(diff(y,x)==diff(ytemp,x))

2 years ago | 1

| accepted

Answered
How to obtain information from a ROI from an image generated with imagesc
Use the ROI's createMask() method: max(yourImage(roi.createMask))

2 years ago | 0

| accepted

Question


Programmatically modify the hyperparameters of a deep network layerGraph
I have an un-initialized layerGraph object for a CNN. I wish to modify all of the convolutional layers in the CNN so that the Nu...

2 years ago | 1 answer | 1

1

answer

Answered
fill the entry of a vector with a given distance
M = 10; d = 2; I=1:d+1:M-d; J=1:nnz(I); A = accumarray([I(:),J(:)],1,[M,numel(J)])

2 years ago | 2

| accepted

Answered
How to store extracted coefficient values from curve fitting of multiple .txt files in index arrays?
f = fittype( 'C1+C4*(C5^2/(C5^2+(x-C6)^2))+C7*(C5*(x-C6)/(C5^2+(x-C6)^2))+C8*x'); C=nan(5,numFiles); %pre-allocate for i=...

2 years ago | 0

| accepted

Answered
Understanding the working mechanism of contourc
The documentation doesn't disclose it, but I would guess that it does a kind of 2D bisection algorithm. Sample points are chosen...

2 years ago | 0

Answered
Mathematical execution of contourc
The documentation doesn't disclose it, but I would guess that it does a kind of 2D bisection algorithm. Sample points are chosen...

2 years ago | 0

Answered
Calculating the circulation given specific parameters
Perhaps this is what you meant. The expression for c looks like it's supposed to be Gaussian, and the double for-loop suggests t...

2 years ago | 1

| accepted

Answered
Why are complex values obtained for the below function (x) in the if condition?
Because you are raising a negative number to a fractional power, e.g., (-2)^1.5

2 years ago | 0

| accepted

Load more