답변 있음
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년 초과 전 | 0

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

2년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
cell2mat error in arraycell
load Check xx=logical([Sis{:}]')

2년 초과 전 | 0

| 수락됨

답변 있음
cell2mat error in arraycell
load Check xx=cellfun(@logical,Sis)

2년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

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

2년 초과 전 | 0

| 수락됨

질문


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년 초과 전 | 답변 수: 1 | 1

1

답변

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
How do I determine the corresponding weights and biases for each feature
As an example, load net net.Layers(2).Weights net.Layers(2).Bias

2년 초과 전 | 0

| 수락됨

답변 있음
How to find the neighbors of a 150x150 matrix?
You can use bwboundaries.

2년 초과 전 | 0

답변 있음
Cannot perform null assignment from variable
Another workaround is to call subsasgn direclty, A = nan(1,3); empty_scalar = 4; A=subsasgn(A, struct('type','()','subs',{...

2년 초과 전 | 0

답변 있음
Cannot perform null assignment from variable
Yes, it is special syntax. I agree it is strange behavior, but one workaround is, A = nan(1,1,3); empty_scalar = []; if isemp...

2년 초과 전 | 2

| 수락됨

답변 있음
Using zoom with rectangle cuts of area
Don't use zoom. Use XLim and YLim to control the viewable region. That will let you set its boundaries exactly as you like them....

2년 초과 전 | 0

답변 있음
increase the thickness + hide some lines generated in the pie chart
What I would do is overlay another piechart on top of it (with transparent wedges, but thicker lines). load matrix_new.mat loa...

2년 초과 전 | 0

| 수락됨

답변 있음
How can I fill the area under a curve with different colors?
One way: x=0:0.01:4; y=1-exp(-x); color={'g','y','r'}; edges=0:4; for i=1:3 r=(edges(i)<=x)&(x<=edges(i+1)); ...

2년 초과 전 | 0

답변 있음
curve fitting exponential function with two terms
You can also use fit()'s normalizer, x = [6500 6350 6000 5400 4500]; y = [0 0.25 0.5 0.75 1.0]; theFit=fit(x',y','exp2','N...

2년 초과 전 | 0

더 보기