Réponse apportée
How to use least square fit to 2D matrix data
[~,location]=min(Data);

presque 3 ans il y a | 0

Réponse apportée
Matlab matrix copy-paste problem (pasting a matrix into the Matlab Editor in older, 1-line format)
I don't think there is a preference setting that will restore the behavior you want. A workaround though is to copy/paste from t...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Matlab matrix copy-paste problem (pasting a matrix into the Matlab Editor in older, 1-line format)
Type the brackets [] at the desired location and paste into the space between them.

presque 3 ans il y a | 0

Réponse apportée
Using print function to save figures with text labels
Conside export_fig, https://www.mathworks.com/matlabcentral/fileexchange/23629-export_fig?s_tid=srchtitle

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Why do we need to use dynamic properties?
They are a convenience, not a requirement. From the documentation: Use dynamic properties to attach temporary data to objects o...

presque 3 ans il y a | 0

Réponse apportée
I'm trying to vectorize my for loop, what would be the best method?
yvals=Linearparams(1)*timevals+Linearparams(2)+sin(nonLinearParams*timevals);

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Piecewise 3D plotting
Perhaps this is what you meant: syms Z(x,y) y1 = -0.00278018473212*x.^3 + 0.0764514697018*x.^2 + -0.481036946424*x + 4.3788560...

presque 3 ans il y a | 0

Réponse apportée
Function Argument Validation: Comparing property size to a variable
No, you can't do that, because the object has to be able to instantiate properties before the constructor is called.Therefore, p...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Why doesn't parfeval(@splitapply) improve splitapply's performance?
If you're going to be using PCT functions anyway, I wonder if a parfor loop might do better than splitapply. I.e., instead of, ...

presque 3 ans il y a | 0

Réponse apportée
Levenberg Marquardt algortihm as custom training function using dlupdate
Levenberg-Marquardt would only be practical for very small networks and training data sizes. That is the case in the code you've...

presque 3 ans il y a | 0

Réponse apportée
Getting error in PARFOR in MATLAB
It looks like you are trying to read a file (with load()) while it's being written to. Perhaps you mean to do the reading first?...

presque 3 ans il y a | 0

Réponse apportée
How do you write a function that adds all odd numbers between 2 even numbers?
As a hint, it is very easy to create a vector of consecutive odd numbers, e.g., x=(5:2:11)

presque 3 ans il y a | 0

Réponse apportée
Calculation of a sum with variable values from textbox prompt
Then make a prompt with an input for each resistor value It shouldn't require multiple prompts, ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How best and most efficient way to build this matrix
[C,R]=deal(zeros(1,10)); C(1:4)=[-4 6 -4 1]; R(1:2)=[-4,1]; A=toeplitz(C,R); A(1)=-2; A(end,:)=flip(A(1,:))

presque 3 ans il y a | 0

| A accepté

Réponse apportée
how concatenate arraycell in this strange way
c = {1 4}; d = {3 6}; num2cell( [cell2mat([c;d]')],2)'

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Is there a good way here to allow users to both retain access control for properties and overload indexing methods?
then the access property of that member becomes invalid at that point Nope, not true. Even if you don't define a subsref method...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Register the point cloud data sets
Have you looked at this, https://www.mathworks.com/help/vision/ug/3-d-point-cloud-registration-and-stitching.html#StitchPointCl...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Sum up meshgrids with different sizes and positions that overlap each other
Rather than using handle graphics to do this, it sounds like it would be better to use imrotate to make the various rotations of...

presque 3 ans il y a | 0

Réponse apportée
Max Pooling Layer Tuning
Your input image's spatial dimensions are 6x1. This is not compatible with a 2x2 maxpooling filter. Did you mean to have 2x1 poo...

presque 3 ans il y a | 1

| A accepté

Question


Import desktop layouts into a newer release of Matlab
I have created and saved two personalized layouts for my Matlab Desktop, Now, ho...

presque 3 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How do I validate an input method input by a object property?
classdef myclass properties(Access=public) Filenames cell {mustBeA(Filenames,"cell")} = {['Testrun_xxxx']} ...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Why doesn't parfeval(@splitapply) improve splitapply's performance?
It probably means that Matlab's internal parallellization already does what parfeval does.

presque 3 ans il y a | 0

| A accepté

Réponse apportée
extremely inefficient piece of code ... bug?
Well, I think the bottom line is just that the JIT does not have any optimization for indexing expressions like idx(idx<=0). Tha...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to create an indexable array of fid
fids are just numbers. You can allocate any double array to hold them.

presque 3 ans il y a | 0

Réponse apportée
Why is sum considerably slower that adding each individual element together, when using large loops?
Yes, unfortunately, vector indexing is quite an expensive operation. If idx is constant, as in your example, than you should do ...

presque 3 ans il y a | 1

| A accepté

Question


Why is it necessary/useful to have a HandleCompatible attribute?
Setting HandleCompatible=true in a value class doesn't seem to change its behavior in any way, other than to allow it to "mate" ...

presque 3 ans il y a | 2 réponses | 1

2

réponses

Réponse apportée
When I use fmincon, the optimised result does not satisfy my non liner constraints
Since it is a 2D problem, it practically begs you to pre-sweep for a good initial guess: fun = @(x)4*x(1)+x(2); lb = [0.01,0...

presque 3 ans il y a | 0

Question


More multiplication operations require less time
I would expect the execution times for the 3 operations below to get longer and longer. Where have I misled myself? Is it an iss...

presque 3 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How can I disable fminsearch function to print a warning message?
fminsearch(___, optimset('Display','off'))

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Reshaping with Different Sizes
There is no requirement that an index array be the same size as the array being indexed. Example: values=[20,30,40] values(o...

presque 3 ans il y a | 1

| A accepté

Charger plus