Beantwortet
How can I continue training my network from the previous state?
Just call trainnet() again, feeding it your net in its current state, rather than an untrained layer graph. You may wish to adj...

mehr als ein Jahr vor | 2

Beantwortet
colorbar graph exceeding matrix values
You haven't attached Ft for us to examine, so we have no way to verify your claim that the data is bounded to [0,1]. Regardless,...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
How to use Matlab trainnet to train a network without an explicit output layer (R2024a)
1) Is it possible to use trainnet in a network without an output layer? It is difficult to imagine that a built-in training func...

mehr als ein Jahr vor | 0

Beantwortet
Work Around for Convolution1DLayer
Why not just use a convolution2dLayer? A 1D input is just a special case of a 2D input.

fast 2 Jahre vor | 0

Beantwortet
find best fit ellipse to a set of data points
Use ellipticalFit() from, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-to-fit-plot-conics-a...

fast 2 Jahre vor | 2

| akzeptiert

Beantwortet
FFT of 3D array in MATLAB
Why reinvent the wheel. Why not just use the open source FFTW C/C++ library (which Matlab is based on). https://www.fftw.org/ ...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
is it possible to see what variables and functions affecting a certain variable ?
Perhaps you are looking for matlab.codetools.requiredfilesandproducts.

fast 2 Jahre vor | 0

Beantwortet
How to convert this fplot to 3D plot view
view(3)

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
trainnet gives training loss is NaN
You need to provide more information about what you did, e.g., the training code. However, I can hazard a guess. I imagine prob...

fast 2 Jahre vor | 0

Beantwortet
How to train Unet semantic segmentation with only one single class/label?
The value of 'numClasses' is invalid. Expected numClasses to be a scalar with value > 1 Because you have two classes (0 and 1)....

fast 2 Jahre vor | 0

Beantwortet
Image processing - Is there any technics to remove this marks ?
A=im2gray(imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1746876/image.jpeg')); B=255+double(imcomple...

fast 2 Jahre vor | 0

Beantwortet
How to use OutputFcn with fitnlm
Only Optimization Toolbox solvers have an OutputFcn option. Perhaps you are thinking of lsqcurvefit, load carbig tbl =...

fast 2 Jahre vor | 0

Beantwortet
3D system definition: How btaining the angle between a single axis and a plane
and eventually XY That would just be the angle between Yprime and Z, wouldn't it? Yprime=Rprime(:,2); Z=R(:,3); angle = ac...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
Mean and Standard Deviation of outputs on a neural network
You have shown the code for your network, but not how you have adapted the training code, nor the error messages. So, it calls f...

fast 2 Jahre vor | 0

Beantwortet
Dual problem and primal problem unbounded linear programming
%Primary Problem %coefficients of A A = [1 4; 4 5; 2 3; 3 1]; %coefficients of B b = [320 510 430 300]; %coefficients...

fast 2 Jahre vor | 0

Beantwortet
how can i rescale image? standard is at the center part
Use imresize. It scales relative to the center.

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
How can I identify and fill outliers in a 2d matrix?
You could detect and replace the outliers with missing values by doing, outlierMap = abs(yourMatrix-medfilt2(yourMatrix,[M,N]))...

fast 2 Jahre vor | 1

| akzeptiert

Beantwortet
How can I calibrate a fixed camera to obtain accurate measurements of objects at different distances, despite height variations and pixel distortion?
You cannot determine the size of the object from a single camera without knowing its distance from the camera. You would need tw...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
Setting bounds for constants in a fit() object in terms of other constants in the fit object
As a more indirect approach, instead of fitting, y=A*log(B*x-C) %D has been deliberately removed - it is unnecessary you coul...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
1D gaussian filter for A-scans (OCT)
See imgaussfilt, e.g., A=zeros(1,11); A((end+1)/2)=1 B=imgaussfilt(A,1.2)

fast 2 Jahre vor | 0

Beantwortet
Finding zeros of intersection of the "x-axis" - Error using "fzero"
tic close all; clc; % For the region k_o < k_p < sqrt(u_r*e_r)*k_o % Wavelength value lambda lambda = 1; % Wavenumber...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
Why are the gradients not backpropagating into the encoder in this custom loop?
In terms of what may be different from trainnet, I don't see any regularization in your customized loop. You have a function cal...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to define a slicing like x(i).property in a custom class?
function varargout = subsref(this, s) switch s(1).type case '()' ...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
GPU memory usage for Hadamard product
This is just a guess, but possibly the GPU memory is fragmented. I.e., maybe your available 28GB is broken into blocks that are ...

fast 2 Jahre vor | 0

Beantwortet
Loop data in both x and y direction, and do linear fit of each y at each x
t = 15:15:1440; %time MSD=readmatrix('MSDdata.xlsx'); A=t.'.^[1,0]; slopes=nan(size(MSD)); for i=1:height(A) tm...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
Loop data in both x and y direction, and do linear fit of each y at each x
Perhaps this is what you want. matrix1=rand(96,1); matrix2=rand(96,150); [Xslope,Tslope]=gradient(matrix2,1:150,matrix1); ...

fast 2 Jahre vor | 0

Beantwortet
"tighter" tile spacing and uniform tile height using tiledlayout?
You could also play with the tilespan: % Create tiled layout tiledlayout(1,305,'TileSpacing','none','Padding','none'); % I...

fast 2 Jahre vor | 1

Beantwortet
"tighter" tile spacing and uniform tile height using tiledlayout?
One option would be to download subaxis, as an alternative to tiledlayout. s=.01; % Image A subaxis(1,3,1,'SpacingHoriz',s)...

fast 2 Jahre vor | 1

Beantwortet
How can I use the data of a set of matrices labelled in order
data_1=10; data_2=20; data_3=30; data_4=40; data_5=50; Data=arrayfun(@(i)evalin('caller', "data_"+i), 1:5,'uni',0)

fast 2 Jahre vor | 0

Beantwortet
Where can I find a good example of using tied weights in nested layers?
The example at your link is for R2024a, but the version of Matlab you are running is only R2023b.

fast 2 Jahre vor | 0

| akzeptiert

Mehr laden