統計
All
Feeds
回答済み
How can i write a MATLAB script for surface profile analysis of different geometries(such hemisphere, plane, sphere, asphere...) including vertex search, data processing,fit?
It sounds like this might benefit you, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-to-fit-...
How can i write a MATLAB script for surface profile analysis of different geometries(such hemisphere, plane, sphere, asphere...) including vertex search, data processing,fit?
It sounds like this might benefit you, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-to-fit-...
約5時間 前 | 0
回答済み
Operations with rows First, second and third
For example, a = [0 1 1 0 0 1 0 1 0; 1 1 0 1 0 0 1 1 1; 0 0 0 1 1 1 0 0 1] first_and_second = sum( ~a(1,:)&a(2,:))
Operations with rows First, second and third
For example, a = [0 1 1 0 0 1 0 1 0; 1 1 0 1 0 0 1 1 1; 0 0 0 1 1 1 0 0 1] first_and_second = sum( ~a(1,:)&a(2,:))
約15時間 前 | 1
回答済み
I am coding a equation for curve fitting, but I am facing inaccuracy. I am not getting Elastic plateau in the curve. Can anyone guide me how I can address the issue.
You need a better initial guess. Also, you should exclude the data from the linear elastic region, since clearly that is not cap...
I am coding a equation for curve fitting, but I am facing inaccuracy. I am not getting Elastic plateau in the curve. Can anyone guide me how I can address the issue.
You need a better initial guess. Also, you should exclude the data from the linear elastic region, since clearly that is not cap...
約15時間 前 | 0
回答済み
How can I add a backup an option, addSaveCallback, to save a timestamped version of my file, to the MATLAB editor?
Instead of trying to get the standard Save button to do what you want, you can make a Quick Access Toolbar button which runs you...
How can I add a backup an option, addSaveCallback, to save a timestamped version of my file, to the MATLAB editor?
Instead of trying to get the standard Save button to do what you want, you can make a Quick Access Toolbar button which runs you...
4日 前 | 0
回答済み
function input arguments error
Your code uses 'isreal' as both the name of a function and a variable. You can resolve the conflict by renaming the output, e.g....
function input arguments error
Your code uses 'isreal' as both the name of a function and a variable. You can resolve the conflict by renaming the output, e.g....
5日 前 | 1
回答済み
Invalid training data. Predictors and responses must have the same number of observations.
Your XTrain shouldn't be a 100x6 cell. It should be a 100x1 cell where each XTrain{i} is a matrix with 6 rows. Example, layers ...
Invalid training data. Predictors and responses must have the same number of observations.
Your XTrain shouldn't be a 100x6 cell. It should be a 100x1 cell where each XTrain{i} is a matrix with 6 rows. Example, layers ...
5日 前 | 1
| 採用済み
回答済み
Problems with quiver plot
I think you just need axis equal. %% system paramters eta = .1; mu = .1; nu = 1; gamma = 2; %% dependent variables roi...
Problems with quiver plot
I think you just need axis equal. %% system paramters eta = .1; mu = .1; nu = 1; gamma = 2; %% dependent variables roi...
6日 前 | 0
| 採用済み
回答済み
Is there a way to edit the default size of an edit control in a livescript?
No, I don't believe there is. You will have to make a real app if you want that kind of control.
Is there a way to edit the default size of an edit control in a livescript?
No, I don't believe there is. You will have to make a real app if you want that kind of control.
6日 前 | 0
| 採用済み
回答済み
Conversion from an old to a new version of a class with different property names
One way is with a Dependent property. This makes it so you can reference the same property using tc.shortname. classdef testCla...
Conversion from an old to a new version of a class with different property names
One way is with a Dependent property. This makes it so you can reference the same property using tc.shortname. classdef testCla...
7日 前 | 2
| 採用済み
回答済み
making a custom way to train CNNs, and I am noticing that avgpool is SIGNIFICANTLY faster than maxpool in forward and backwards passes…
I think the pooling operations are simply not optimized for the specific situation when the pooling is tiled (i.e., poolsize=str...
making a custom way to train CNNs, and I am noticing that avgpool is SIGNIFICANTLY faster than maxpool in forward and backwards passes…
I think the pooling operations are simply not optimized for the specific situation when the pooling is tiled (i.e., poolsize=str...
8日 前 | 1
回答済み
Trimesh plots diferently using trimesh(TO) vs trimesh(T,x,y,z)
You haven't attached your .mat file so we can't try to reproduce it. I would guess that the problem is that you've transposed th...
Trimesh plots diferently using trimesh(TO) vs trimesh(T,x,y,z)
You haven't attached your .mat file so we can't try to reproduce it. I would guess that the problem is that you've transposed th...
11日 前 | 0
回答済み
Gradients not recorded for a dlnetwork VAE
As the error message says, the call to dlgradient must occur within the function (in this case computeTotalLoss) called by dlfev...
Gradients not recorded for a dlnetwork VAE
As the error message says, the call to dlgradient must occur within the function (in this case computeTotalLoss) called by dlfev...
11日 前 | 0
回答済み
Match cell array names with table names
You shouldn't have 20 tables. You should have 20 struct fields, Tables.W1=... %a table Tables.S1=... %another table and s...
Match cell array names with table names
You shouldn't have 20 tables. You should have 20 struct fields, Tables.W1=... %a table Tables.S1=... %another table and s...
12日 前 | 0
回答済み
Creating a string for loop.
Instead of separate variables, they should be struct fields, in.mp=[1,2,3]; in.bof=[11,12,13], and so forth. Then you can pro...
Creating a string for loop.
Instead of separate variables, they should be struct fields, in.mp=[1,2,3]; in.bof=[11,12,13], and so forth. Then you can pro...
12日 前 | 0
回答済み
How to implement a Transformer with separate encoder and decoder inputs and cross-attention in MATLAB?
trainNetwork does not seem to support multiple inputs. trainNetwork is deprecated. You should be using trainnet, which supports...
How to implement a Transformer with separate encoder and decoder inputs and cross-attention in MATLAB?
trainNetwork does not seem to support multiple inputs. trainNetwork is deprecated. You should be using trainnet, which supports...
13日 前 | 0
回答済み
low weighted cross entropy values
There are a few possible reasons for the discrepancy that I can think of, (1) Your norm_weights do not add up to 1 (2) You hav...
low weighted cross entropy values
There are a few possible reasons for the discrepancy that I can think of, (1) Your norm_weights do not add up to 1 (2) You hav...
14日 前 | 0
| 採用済み
回答済み
How to avoid trimming of string cells got by readtable method?
filename='tst.xlsx'; opts = spreadsheetImportOptions(DataRange='A1'); opts=setvaropts(opts,WhiteSpaceRule='preserve'); my...
How to avoid trimming of string cells got by readtable method?
filename='tst.xlsx'; opts = spreadsheetImportOptions(DataRange='A1'); opts=setvaropts(opts,WhiteSpaceRule='preserve'); my...
14日 前 | 0
回答済み
Special case of function not found even when in current directory or on path
It's because the file is preparsed to see if matlabbugfun1 is being used as a variable name or as a function name. You can avoid...
Special case of function not found even when in current directory or on path
It's because the file is preparsed to see if matlabbugfun1 is being used as a variable name or as a function name. You can avoid...
15日 前 | 0
| 採用済み
回答済み
How can I perform partial trace for a pure state with four subsystems?
Does this do what you want? % reshape |psi> into tensor (s1,s2,s3,s4) psi_tensor = reshape(psi,[2,2,N,N]); % reorder to gro...
How can I perform partial trace for a pure state with four subsystems?
Does this do what you want? % reshape |psi> into tensor (s1,s2,s3,s4) psi_tensor = reshape(psi,[2,2,N,N]); % reorder to gro...
15日 前 | 0
回答済み
MATLAB graph/cyclebasis: How can I extract labeling-independent “minimal loop units”?
This might help: https://www.mathworks.com/matlabcentral/fileexchange/73630-spatialgraph2d node = [ 2 7 2 3 3 4 4 5 5 6 ...
MATLAB graph/cyclebasis: How can I extract labeling-independent “minimal loop units”?
This might help: https://www.mathworks.com/matlabcentral/fileexchange/73630-spatialgraph2d node = [ 2 7 2 3 3 4 4 5 5 6 ...
15日 前 | 1
送信済み
A class for successive matrix products
A class representing products of matrices, internally storing/manipulating them separately.
28日 前 | ダウンロード 4 件 |
回答済み
Access class methods in one line only when you use brackets after class name.
The phenomenon you are seeing goes beyond just classes. Data is the name of a function (the class constructor). As explained her...
Access class methods in one line only when you use brackets after class name.
The phenomenon you are seeing goes beyond just classes. Data is the name of a function (the class constructor). As explained her...
28日 前 | 0
| 採用済み
回答済み
How to use Markov Chain Monte Carlo for data fitting
I assume your Python user friend was talking about PyDREAM, https://pydream.readthedocs.io/en/latest/installation.html and th...
How to use Markov Chain Monte Carlo for data fitting
I assume your Python user friend was talking about PyDREAM, https://pydream.readthedocs.io/en/latest/installation.html and th...
29日 前 | 0
回答済み
Get mean of a matrix which has NaN in it
grades = [2,4,6; 5, NaN, 1; 7, 2,NaN] mean(grades,'omitnan')
Get mean of a matrix which has NaN in it
grades = [2,4,6; 5, NaN, 1; 7, 2,NaN] mean(grades,'omitnan')
29日 前 | 0
| 採用済み
回答済み
Help with Plotting the Envelope of a Scatter Plot in MATLAB
load xy x=x(:); y=y(:); [G,yg]=findgroups(y); xmin=splitapply(@min,x,G); xmax=splitapply(@max,x,G); [yg,is]=sort(yg...
Help with Plotting the Envelope of a Scatter Plot in MATLAB
load xy x=x(:); y=y(:); [G,yg]=findgroups(y); xmin=splitapply(@min,x,G); xmax=splitapply(@max,x,G); [yg,is]=sort(yg...
29日 前 | 0
| 採用済み
回答済み
How we can calculculate the MTF from PSF?
MTF=abs(fft2(PSF)); MTF=fftshift(MTF/MTF(1));
How we can calculculate the MTF from PSF?
MTF=abs(fft2(PSF)); MTF=fftshift(MTF/MTF(1));
約1ヶ月 前 | 0
回答済み
How can i classify shapes on this image as square, rectangle and circle?
See here, https://www.mathworks.com/matlabcentral/answers/116793-how-to-classify-shapes-of-this-image-as-square-rectangle-trian...
How can i classify shapes on this image as square, rectangle and circle?
See here, https://www.mathworks.com/matlabcentral/answers/116793-how-to-classify-shapes-of-this-image-as-square-rectangle-trian...
約1ヶ月 前 | 0
回答済み
How to classify shapes of this image as square, rectangle, triangle and circle?
Fit a polyshape to each of the objects by downloading bwlpolyshape() https://www.mathworks.com/matlabcentral/fileexchange/18142...
How to classify shapes of this image as square, rectangle, triangle and circle?
Fit a polyshape to each of the objects by downloading bwlpolyshape() https://www.mathworks.com/matlabcentral/fileexchange/18142...
約1ヶ月 前 | 0
回答済み
Combining one matrix into another that are of different sizes
n = 36; V = kron( eye(2) , [ 0 1 0; -1 0 0; 0 0 1]) ; V(end,n)=0; K=numel(1:3:32); Tx=cell(1,1,K); Tx{1}=V; for k = 2:...
Combining one matrix into another that are of different sizes
n = 36; V = kron( eye(2) , [ 0 1 0; -1 0 0; 0 0 1]) ; V(end,n)=0; K=numel(1:3:32); Tx=cell(1,1,K); Tx{1}=V; for k = 2:...
約1ヶ月 前 | 1