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

2 years ago | 0

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

2 years ago | 0

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

2 years ago | 0

| accepted

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

2 years ago | 1

| accepted

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

2 years ago | 0

| accepted

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

2 years ago | 0

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

2 years ago | 1

| accepted

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

2 years ago | 0

| accepted

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

2 years ago | 0

| accepted

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

2 years ago | 2

| accepted

Answered
penalty value of matlab ga optimization
It is the solution that ga thinks is the global optimum.

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

Answered
Problem in Deep Learning training process
If I had to guess (I do have to), it is because numClasses=1 and you only have one label, accidentally of course. This response ...

3 years ago | 1

| accepted

Answered
Moving window Autocorrelation. One pass algorithm. Speed and Stability concerns.
y=circshift(x,-window_step); w=normalize(ones(1,window_size),'n',1); Ex=cyconv(x,w); Ey=cyconv(y,w); Exy=cyconv(x.*y,w);...

3 years ago | 0

Answered
Side by side boxplots
https://www.mathworks.com/matlabcentral/fileexchange/46545-alternative-box-plot?s_tid=ta_fx_results

3 years ago | 0

Answered
Create a cylindrical mask in a 3D matrix
Coordinates of the center of the two faces of the cylinder. Call this c1,c2 The radius of the cylinder. Call this r The size o...

3 years ago | 0

Answered
how to curve fit a sine wave to some data
One way, assuming you have the Curve Fitting Toolbox: fobj = fit( time, Channels(:,iChan) ,'sin1')

3 years ago | 1

| accepted

Answered
How to remove inner edge of the target?
load('Edge_logical.mat') imshow( edge(imfill(Edge_S1,'holes')) ,[])

3 years ago | 1

| accepted

Answered
how find last row<>0
idx = find(~any(a,2),1,'last')-1

3 years ago | 3

| accepted

Answered
Updating variable inside parfor
The best way is as you first had it: a=1; parfor i = 1: 10 a = a + 1; end There is no way, however, that you can get th...

3 years ago | 0

Answered
How do I input multiple values into Edit Field in matlab app designer ?
You can put any text into an edit field, whether it be a scalar, a vector, or something else entirely. app.EditField=mat2str([1...

3 years ago | 1

Answered
Avoid double validation for constructor arguments that are class properties?
Is it possible to achieve similar behavior as in my first example without copying the validation functions? No. Is there a way...

3 years ago | 0

Answered
How do I detect the approximate radius of a rough, unclear circular object?
If you can find a substantial number of the boundary points of the circle with reasonable accuracy, you can fit a circle to them...

3 years ago | 0

Answered
When assignment is allowed?
The relevant documentation is at, https://www.mathworks.com/help/matlab/ref/subsasgn.html?searchHighlight=subsasgn&s_tid=srchti...

3 years ago | 0

| accepted

Answered
Manipulating Data In 3D & 4D matrices based on distinct conditions
I think this is what you want. kernelA=[1/alpha;1;1/alpha]; kernelB=[gamma, beta, gamma]; RA=(R==1 | R==3); RB=(R==0); ...

3 years ago | 0

Load more