Answered
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 years ago | 0

| accepted

Answered
How to find the neighbors of a 150x150 matrix?
You can use bwboundaries.

2 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 2

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
curve fitting exponential function with two terms
You should normalize your x data % Curve Fit x = [6500 6350 6000 5400 4500]; x=(x-mean(x))/std(x); y = [0 0.2...

2 years ago | 0

Answered
Matlab curve fitter error with exponential form with 2 terms
% Interior Square Footage x = [1500 1600 1750 1930 2250]; y = [0 0.25 0.5 0.75 1]; theFit=fit(x' , y', 'exp2','Lower',[0 0 ...

2 years ago | 0

| accepted

Answered
How to fit an ellipse to an image in matlab.
You can use ellipticalFit from this FEX download https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-too...

2 years ago | 0

Answered
Copy a file to a parent folder
Is there a way to fun a script from inside the subfolder to copy the file up one level? Yes, but I wonder why you think the scr...

2 years ago | 0

Answered
combination of two matrcies
S=log(kron(exp(4*L), exp(M)))

2 years ago | 1

| accepted

Answered
How do you build the matrix for finite difference 2D Laplace equation
Using func2mat from this download, https://www.mathworks.com/matlabcentral/fileexchange/44669-convert-linear-functions-to-matri...

2 years ago | 0

Answered
Brace Indexing Not Supported when in matlab app designer but when transferred to matlab script, it works properly.
I also tried to use msgbox() just to see what is stored in app.StudentName. Why use msgbox()? Why not just pause execution and ...

2 years ago | 0

Answered
Computing on multiple notes with multiple cores
The problem is, that the outer loop has 10 repetitions and the inner loop 50 repetitions Combine the loops into one, i.e., inst...

2 years ago | 1

| accepted

Answered
Implicit expansion for griddedInterpolant
Use the grid vector syntax of griddedInterpolant: zq=J({xq,yq})

2 years ago | 1

| accepted

Answered
Applying an affine transformation of one image to another image
Use imregtform to do the registration instead. Then use imwarp to apply the transformation that imregtform gives you.

2 years ago | 1

| accepted

Answered
Using Optimizing Nonlinear Functions to find mutiple variations
There are also FEX downloads that can do gauss fitting for you, e.g., https://www.mathworks.com/matlabcentral/fileexchange/6911...

2 years ago | 0

Answered
How to find the position index of vector array
start=find(A(1,:),1,'first'); stop=find(A(1,:),1,'last');

2 years ago | 0

| accepted

Answered
Plotting Ellipsoids on XYZ graphs.
You can plot an arbitrarily oriented ellipsoid using this FEX download https://www.mathworks.com/matlabcentral/fileexchange/875...

2 years ago | 1

Answered
Issue with gradient of interpolated data
Here are some applicable FEX submissions (which I myself have not used), https://www.mathworks.com/matlabcentral/fileexchange/8...

2 years ago | 0

Answered
Elegantly refer to the second output from a function
data = (1:8)*100 result = data( argEval(2,@ismember,1, [0,1,2,3,4,5])) function out=argEval(n,fh, varargin) %Get the n-th...

2 years ago | 2

Answered
for loop keeps putting out error
% Loop to generate garden layouts along the length for start_y = 0:spacing:garden_length % Plot the garden layout for ...

2 years ago | 0

Answered
Find the volume of the region bounded between the planes x + y + 2z = 2 and 2x + 2y + z = 4 in the first octant.
Using this FEX download, https://www.mathworks.com/matlabcentral/fileexchange/30892-analyze-n-dimensional-convex-polyhedra [A...

2 years ago | 0

Answered
Reduce the number of elements tretamesh
This looks applicable, https://www.mathworks.com/matlabcentral/fileexchange/87112-isocut?s_tid=srchtitle in particular IsoCut...

2 years ago | 1

| accepted

Answered
ImageDataStore and tall array, How to use to save Labels and 4D Matrices in for loop?
imageDatastores are provided for situations like that.

2 years ago | 0

Answered
How to plot a shifted signal?
One way: t=linspace(0,2*pi); y=sin(t); plot(t,y,t-pi/2,y,'x'); legend Original Shifted

2 years ago | 0

Answered
How to subtract 1 from a property of every instance of a class in an array?
If possible I would like to do this without using a FOR loop for speed. There is no way to do it faster than a for-loop, but th...

2 years ago | 0

Load more