Réponse apportée
How to get the distance references of geometry and curvature of the object?
I was able to do it with the help of some FEX downloads: https://www.mathworks.com/matlabcentral/fileexchange/90762-further-too...

plus de 2 ans il y a | 0

Réponse apportée
Indexing matrix with multiplication
No. You can easily see they are not the same by comparing them yourself: T=randi(30,5) mask=T>20; T(mask) T.*mask

plus de 2 ans il y a | 1

Réponse apportée
Access MinFeretCoordinates data in regionprop table
For example, stats{1,'MinFeretCoordinates'} stats{2,'MinFeretCoordinates'} stats{3,'MinFeretCoordinates'}

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Complex Image Processing with closed contour
So, you have an image like this, load Image figure; imshow(Image) and you just want to keep the central part? Then threshol...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Inserting zeros into another array at values in the second array
A = [8 2 3 5 5 6 7 8 9]; B = [1 3 2 3]; F=nan(1,numel(A)+numel(B)); F(cumsum(B)+(1:numel(B)) )=0; F(isnan(F))=A

plus de 2 ans il y a | 1

Réponse apportée
How to Remove Tail from Segmented Circle
This uses bwlalphaclose from this FEX download https://www.mathworks.com/matlabcentral/fileexchange/90762-further-tools-for-ana...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 2 ans il y a | 1

Réponse apportée
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 ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

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

plus de 2 ans il y a | 0

Réponse apportée
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(...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
cell2mat error in arraycell
load Check xx=logical([Sis{:}]')

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
cell2mat error in arraycell
load Check xx=cellfun(@logical,Sis)

plus de 2 ans il y a | 1

Réponse apportée
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.

plus de 2 ans il y a | 0

Réponse apportée
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 ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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');

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How to efficiently calculate a weighted sum of 3 dimensional matrix through a vector in matlab
C=tensorprod(A,b,3,1)

plus de 2 ans il y a | 1

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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))

plus de 2 ans il y a | 1

| A accepté

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

plus de 2 ans il y a | 0

| A accepté

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

plus de 2 ans il y a | 1 réponse | 1

1

réponse

Charger plus