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...

2 years ago | 2 answers | 0

2

answers

Answered
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)...

2 years ago | 0

| accepted

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...

2 years ago | 1 answer | 0

1

answer

Answered
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...

2 years ago | 0

| accepted

Answered
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...

2 years ago | 0

| accepted

Answered
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...

2 years ago | 0

| accepted

Answered
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...

2 years ago | 0

| accepted

Answered
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.

2 years ago | 1

Answered
Is it possible to subtract the baseline of a graph from the peak using the curvefitter toolbox?
Yes, it would be possible, although for what you show it might be enough just to use polyfit.

2 years ago | 0

| accepted

Answered
Why does the for loop show the graph of the last plot?
Use figure() to open a new figure window for each plot (otherwise, each plot will overwrite the previous plot in that window). ...

2 years ago | 0

| accepted

Answered
moving two roi's together
hROI = drawcircle('Center',[x, y],'Radius',radius); roiCH = drawcrosshair('Position', [x,y], ... ...

2 years ago | 0

| accepted

Answered
Force super class to not call overloaded methods of the subclass
In any superclass method, you can test whether the invoking object is of the base class or one of its children. Depending on the...

2 years ago | 1

Answered
Non linear constrain to multi objective integer genetic algorithm
Is the idea that x(1:end/2) contain unique integers? I don't see how the given constraint would ensure that. The diff() function...

2 years ago | 0

Answered
Transfer Learning shows no enhancements in runtime
If you run the same number of iterations and epochs with the same data, then naturally it will take the same amount of time. Run...

2 years ago | 0

Answered
diff not working on a vector of values
x=[ 98.00 97.68 97.75 98.32 221.00 220.99 221.32 221.3...

2 years ago | 0

Answered
gradient descent for custom function
so I guess it would be more of an optimization built in function to use. No, not necessarily. Your equations can be implemente...

2 years ago | 0

Answered
Saving 3D image after segmentation
There are several File Exchange submissions that are applicable. I have used this one and been pretty happy, https://www.mathwo...

2 years ago | 0

Answered
Condition for if-statement not updating inside for-loop without pause function
A more standard solution is to use drawnow rather than pause. for c2 = 1:length(time) f2 = figure(2); ... draw...

2 years ago | 0

| accepted

Question


Retrieve initialization specifics from a dlnetwork object
I have applied replaceLayer() to a dlnetwork object DLN1 that I have. DLN2=replaceLayer(DLN1,layerName,newLayer); As a result ...

2 years ago | 1 answer | 0

1

answer

Answered
Does struct manipulation work in place when using arrayfun on an array of structs?
It does indeed appear that with arrayfun (unlike loops), pre-existing field contents get deep-copied to a new memory address (as...

2 years ago | 0

| accepted

Answered
M^2 fitting for a Gaussian beam with measured data
Your post doesn't give much detail on what you are trying to do, but if you are just trying to fit a 1D Gaussian to the data in ...

2 years ago | 0

| accepted

Answered
Class property validator reports an error if no default value is set
I have the following class defintion which is using a validator function You're not using a property validation function anywh...

2 years ago | 0

Answered
Optimization problem with non convex constraints
Is there a way to write these constraints so that they could be feasible for fmincon, linprog? There is, but it is generally no...

2 years ago | 0

Answered
Using contours and inpolygon, an issue of unclosed contours
There's no way to define a unique shape based on knowledge of just the isocontour line cooordinates. This gives you the boundari...

2 years ago | 0

Answered
mage segmentation of 3D X-Ray micro computed tomography images using Unet.
The examples here show basic steps for creating and training a Unet, https://www.mathworks.com/help/vision/ref/unet.html#mw_a26...

2 years ago | 0

Answered
Why does this code give error?
As you can see, VecteurDirectionnel and S are the wrong sizes for matrix multiplication, whos VecteurDirectionnel S % Array ...

2 years ago | 0

| accepted

Answered
DNN training 3D Parameters
The parameters you mention experimenting with do not include all the training options (see below for a more complete list). You ...

2 years ago | 0

Answered
Store arrays of different size in each for loop itertaion
b=sparse(sz(:,1)'); kkkk = nonzeros( (A(:)>=b & A(:)<=b+100).*(1:numel(A))' );

2 years ago | 0

Submitted


Block transposition, permutation, and reshaping of arrays
Analogues for transpose(), reshape(), and permute() but where sub-blocks of the array are treated as scalar elements.

2 years ago | 1 download |

5.0 / 5

Question


Why is it that Line objects can be instances of two different classes? How can I use findobj to detect only chart primitives?
Using findobj, I have ended up with two arrays of Line graphics handles, load handleArrays hL hD However, the arrays do ...

2 years ago | 2 answers | 1

2

answers

Load more