Réponse apportée
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.

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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). ...

plus de 2 ans il y a | 0

| A accepté

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

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 1

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

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

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

1

réponse

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

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

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 2 ans il y a | 0

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

plus de 2 ans il y a | 0

A soumis


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.

plus de 2 ans il y a | 1 téléchargement |

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

plus de 2 ans il y a | 2 réponses | 1

2

réponses

Réponse apportée
How to modify subplots to create a new subplots?
close all H(1)=openfig('pac4.fig'); ax1=flip(findobj(H(1),'Type','axes')); H(2)=openfig('pvc4.fig'); ax2=flip(findobj(H(2)...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Store arrays of different size in each for loop itertaion
kkk=cell(4,1); for i=1:4 kkkk{i} = find(A>=sz(i,1) & A<=sz(i,1)+100); end kkkk=vertcat(kkkk{:});

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Using imageDatastore to load Input image and get output as predicted image
and predict an image as output of the model. Labels are text scalar that are assigned to an image in a classification problem....

plus de 2 ans il y a | 0

Réponse apportée
Most time-efficient conversion from logical matrix to fixed-point vector
n = 1e6; % number of fi objects m = 16; % number of bits of each fi object tic; A = randi([0,1], [n m], "logical"); t1 = toc...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
Tracking the variation of the distance between optimization variable and the optimal solution over the iteration time
function x_opt = locao2(h, C, BS_positions, alpha,x0) objective = @(x) -calculatePDF(x(1), x(2), h, C, BS_positions, alph...

plus de 2 ans il y a | 0

Réponse apportée
Help with getting drawnow to show one point at a time
The loop variable i is not being used, Perhaps you meant to have, for i = 1:numel(roll) plotOrientation(op, roll(i), ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
The sufficient and necessary conditon of fmincon funciton can find out the global optimal solution but not some other local optimal solutions
fmincon has no awareness of, and so does not consider, the function's global properties, like whether it is convex or not. It on...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
What is the finite nature of MATLAB?
It is not the finite nature of Matlab, but rather the finite nature of an FFT. You are not transforming a true sinc function bec...

plus de 2 ans il y a | 1

| A accepté

Charger plus