Réponse apportée
What happens to cleared custom `handle` objects?
If you clear c, then that copy of the handle is gone, while other shared instances of it that you may have created remain. If yo...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
How plot a grid of rectangles on an overlaid circle?
R = 5; % circle radius H = 1; % rect height W = 2; % rect width circ=nsidedpoly(1000,"Radius",R); %polyshape for the circle...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
How can I make the layout in the attached image with tiledlayout
If you download nestedLayouts, https://www.mathworks.com/matlabcentral/fileexchange/161736-grids-of-tiled-chart-layouts then y...

environ 2 ans il y a | 0

Réponse apportée
Conditional array accumulation inside parfor
map = false(N,M); parfor k=1:M*N [n,m]=ind2sub([N,M],k); map(k) = ( f(m,n)>0 ); end [I,J]=fin...

environ 2 ans il y a | 2

| A accepté

Réponse apportée
Lower precision in trainnet workflow
Just pass in training data with a lower precision type (e.g., singles versus doubles).

environ 2 ans il y a | 0

Réponse apportée
Understanding implicit surface plot behavior
Re-running the code in the latest release, R2024a, it appears the problem has been fixed. Q=diag([0,1,1]./3^2); axis([-5 5 -...

environ 2 ans il y a | 0

| A accepté

Question


Passing additional minibatchable quantities to a trainnet() loss function
I am calling trainnet() with the syntax, netTrained = trainnet(cds,net,lossFcn,options) where lossFcn=f(Y,T) is a handle to a ...

environ 2 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
fminunc not converging objective function
You need to a better choice of units for x(3), at least for the optimization step. Below, I modify the objective function so tha...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Need help in MATLAB tiled layouts (nested)
If you download nestedLayouts, https://www.mathworks.com/matlabcentral/fileexchange/161736-grids-of-tiled-chart-layouts?s_tid=s...

environ 2 ans il y a | 1

Réponse apportée
Save a 3D image to TIFF
See saveastiff, https://www.mathworks.com/matlabcentral/fileexchange/35684-multipage-tiff-stack?s_tid=srchtitle

environ 2 ans il y a | 0

Réponse apportée
Coding the Jacobian efficiently in MATLAB
minusA = -A; J=@(u) JacobianEngine(u,minusA); function Jn = JacobianEngine(u,Jn) p=numel(u); Jn...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Should the discrete 2D convolution from MATLAB be multiplied with twice the nodal step size ?
Yes, that is correct.

environ 2 ans il y a | 1

| A accepté

Réponse apportée
The "union" function for polyshapes performs an incorrect consolidation of adjacent polyshapes when presented as a vector
A limitation has been discovered in the union operation for polyshapes. The development team has been notified about this issue ...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Error with spdiags size dimensions in pentadiagonal matrixes
Does anyone know if spdiags has undergone any significant updates between versions these 2 years? Yes, support for the syntax y...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
How to Improve Performance of an Over-fit Convolutional Neural Network
By enforcing regularization penalty for generalization. I'm still figuring out what functions or options may allow me to do that...

environ 2 ans il y a | 0

Réponse apportée
How to choose one between two constraint conditions
Considering Walter's answer, your example may not have captured your real question. If you really do have a feasible set of the ...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Rank value matrix from 3d Matrix
Also how can NaN values be ignored in this solution? Here's a revised method (loop-free) that also handles NaNs. As before, ran...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Non linear fitting with 3 independent variables
S=load('Data'); f=@(E,S)exp(-E.*S.Vf); funlist={f, @(E,S) -S.IL.*f(E,S), @(E,S) -S.a.*f(E,S)}; [E,ABC]=fminspleas(funlist...

environ 2 ans il y a | 0

| A accepté

A soumis


spatialgraph2D
Creates a graph object with 2D spatial locations associated with the nodes

environ 2 ans il y a | 2 téléchargements |

4.8 / 5
Thumbnail

Question


The "union" function for polyshapes performs an incorrect consolidation of adjacent polyshapes when presented as a vector
I have a polyshape vector "pv" consisting of 4 adjacent triangles: load tstcase_pv plot(pv) Why is it that when the polyshape ...

environ 2 ans il y a | 2 réponses | 0

2

réponses

Question


Strange dependence of object display behavior on debugger state
Consider the following simple classdef, classdef myclass properties (Dependent) data end methods ...

environ 2 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How do I find the value closest to my desired value in a vector
interp1(FA,FA, freqlims,'nearest')

environ 2 ans il y a | 0

Question


Are polyshape vertices preserved reliably without floating point errors?
Suppose I have two polyshapes p1 and p2 and I want to do operations on them (intersection, unions) that in theory should preserv...

environ 2 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
How to speed up convolution with a million data points
Use conv, mzR_II=conv(gg,mzL,'same'); or FFTs, mzR_II=ifft( fft(gg,2*n) .* fft(mzL,2*n) , 'symmetric'); mzR_II=mzR_II(1:n)...

plus de 2 ans il y a | 0

| A accepté

Question


Make trainnet pass in one observation to the network at a time
As best I can tell, trainnet vectorizes its computations across the batch dimension of every minibatch. I.e., during training, i...

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

1

réponse

Réponse apportée
Ellipsoid Mask based on user input of dimension and euler angle
An ellipsoid obeys the inequality (x-c)'*Q*(x-c)<=1 for some appropriate 3x3 matrix Q and 3x1 vector c (which is also the center...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
constrainted regularization to solve ill conditioned problems?
To implement Tikhonov regularisation in lsqlin, C=... d=... lb=... ub=... beta=0.0001; %regularization weight I=eye(nu...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Add listener programmatically for each object method
In the project I am working on, many people contribute, and all would have to remember and implement this line. It wouldn't be...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Layer Input Expectation Doesn't Match (Neural Network)
'ValidationData', {val_x_array_transposed', val_y_array_transposed'} From the naming you have used here, it appears that you h...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Why is there an error in the calculation of 366.0/5.0?
All computers make imperfect calculations. It's a fact of life with finite precision floating point math.

plus de 2 ans il y a | 1

Charger plus