Réponse apportée
Optimizing the coefficients of basis functions to fit a curve
You don't need any special curve fitting tool. Due to the linearity of the model, the coefficients can be found using mldivide, ...

presque 3 ans il y a | 2

| A accepté

Question


CPU-gpuArray transfer speeds on modern GPUs
For a long time, the conventional wisdom has been that, when computing on the GPU, one should try to minimize CPU-GPU transfers,...

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

0

réponse

Réponse apportée
Filling some of the 2d matrix arrays with having vector's indexes
Using accumarray, probably. However, you haven't described what values A(I,J) are supposed to be filled with and the role of my_...

presque 3 ans il y a | 0

Réponse apportée
Interpolate data between two specified contours
We don't know in what form your input data exists. Most of the contour plotting functions allow you to specify the isocontour le...

presque 3 ans il y a | 0

Réponse apportée
Why does my subtraction yield different results?
isequal(eps(x),eps(x_test))=1 does not establish that x=x_test. You misunderstand what eps() does. eps(1) eps(1.1) isequal(...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
How can I combine two double arrays into one but in different rows and columns within Matrix
A = [0;0;0;1;1;1;2;2;2]; B = [5,6,7,8;1,2,3,4;0,1,2,3]; b=B(:,2:end)'; C=[A(:),b(:)]

presque 3 ans il y a | 0

| A accepté

Réponse apportée
What exactly are Handle Compatible Classes? Are they a combination of handle and non-handle classes?
I found that the objects defined by A do not belong to any class! Why is this happening? The syntax of of isa() is, isa(object...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
NONLCON must be a function using lsqnonlin
No, you have set the nonlcon argument to Cexp which is a numeric vector. You should review the documentation for the correct ord...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Counting zeros which are lying between nonzero elements by considering consecutive zeros as a single element in a matrix
A=[1 0 1 1 1 0 0 1;0 1 0 1 1 0 1 0;0 0 1 0 0 0 0 0;1 0 1 1 0 0 1 1] d=diff(A,1,2); result= max(0, min( sum(d==-1,2) - ~A(:,...

presque 3 ans il y a | 0

Réponse apportée
Is there a way to have C1 continuous curve fit?
You could use this spline fitting tool: https://www.mathworks.com/matlabcentral/fileexchange/24443-slm-shape-language-modeling ...

presque 3 ans il y a | 1

Réponse apportée
What functions need GPU support
Sparse array indexing would be one example, e.g >> A=gpuArray.speye(5) A = (1,1) 1 (2,2) 1 (3,3)...

presque 3 ans il y a | 0

Réponse apportée
How can I have similar left side starting point for multiple plots on tiledlayout?
You can use xlim to set where you want each plot to begin.

presque 3 ans il y a | 0

Réponse apportée
inline function returning multiple output variables
A wrapper is needed. tdata = table(["US";"US";"US";"UK";"UK";"TW";"TW";"TW";"TW"], [1;1;5;1.20000000000000;3;4;5;1;2],'Variable...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How does imwarp interpolate data when using displacement fields?
No, in terms of what I would expect at least, a simple left shift is giving me the right thing (see below). I = imread('camera...

presque 3 ans il y a | 0

Réponse apportée
Any update on lsqcurvefit with gpuArray?
I recently had a conversation with the Mathworks about adding gpuArray support to Optimization Toolbox Solvers. The transcript i...

presque 3 ans il y a | 0

Réponse apportée
Shifting elements and replacing empty places with zeros
The B that you have provided is not what the title of your post describes. I assume you meant the following, A =[3 ,7, 9, 2]; ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to seal a class constructor method
Constructors are always sealed innately. The child class method that you've created with the same name as the parent constructor...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
I'm using the online trial version, and I cannot see computer vision tool box; did I miss anything?
The Computer Vision Toolbox is not an app that needs to be run separately within Matlab. Like any toolbox, it provides you with ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Why result of conv and point wise multiplication has different result?
In one case, you are using conv(___'same'). The 'same' flag will throw away some of the resulting points. In the second case, ...

presque 3 ans il y a | 0

Réponse apportée
fmincon for multiple variables
Y = double( (1-y1)+(1-y3)+(y2) ); But I don't see why you are using vpa and other sym operations. I don't think it really incre...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Cumsum resulting in cumulative error compared to looping
Is this just a result of the loss of precision as the vector index increases? Yes The error will accumulate more with cumsum(),...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Avoiding for loop: Ordering and assigning order of Group data
tdata = table(["US";"US";"US";"UK";"UK";"TW";"TW";"TW";"TW"], [1;1;5;1.20000000000000;3;4;5;1;2],'VariableNames',{'name','Loss'}...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
(par)for k=1:N end; select for or parfor loop without code replication
You can avoid replicating the loop code as follows. numWorkers={}; % or whatever if ~parflag numWorkers={0}; end par...

presque 3 ans il y a | 2

| A accepté

Réponse apportée
penalty value of matlab ga optimization
It is the solution that ga thinks is the global optimum.

presque 3 ans il y a | 0

Réponse apportée
Interpolation between 3D data sets. Neural Networks or Other Methods?
Some of the routine interpolation functions to consider would be: griddedInterpolant, scatteredInterpolant, interp3, griddata,gr...

presque 3 ans il y a | 0

Réponse apportée
Converting the outpur of a fit (e.g. sfit) into a string format, then pasting the text to a Text Area in app desginer
I don't know how I can convert the output of a fit, which in my case comes as the class "sfit", into a text format that can then...

presque 3 ans il y a | 0

Réponse apportée
How to extract sequences from a table?
Another option, using varfun: load FCTable T=FCTable; T.tradeDate=dateshift(FCTable.tradeDate,'start','day') ; out = var...

presque 3 ans il y a | 0

Réponse apportée
How to extract sequences from a table?
Calling your table T, out = splitapply(@(x){x} , T{:,[1:10,12:end]},findgroups(T.tradeDate))

presque 3 ans il y a | 1

| A accepté

Réponse apportée
find element a content in b..
I don't know why you think there should be a 4 in the result. a = [5 20 0 3 5 1 1 10]; b = [3 ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Speed up gain by GPU parallel processing
The operations that benefit from GPU acceleration are vectorized matrix operations and commands, e.g., https://www.mathworks.co...

presque 3 ans il y a | 0

Charger plus