답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
(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년 초과 전 | 2

| 수락됨

답변 있음
penalty value of matlab ga optimization
It is the solution that ga thinks is the global optimum.

2년 초과 전 | 0

답변 있음
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...

2년 초과 전 | 0

답변 있음
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...

2년 초과 전 | 0

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

2년 초과 전 | 0

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

2년 초과 전 | 1

| 수락됨

답변 있음
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 ...

2년 초과 전 | 0

| 수락됨

답변 있음
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...

2년 초과 전 | 0

답변 있음
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 ...

2년 초과 전 | 1

| 수락됨

답변 있음
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년 전 | 0

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

거의 3년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

| 수락됨

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

거의 3년 전 | 1

| 수락됨

답변 있음
how find last row<>0
idx = find(~any(a,2),1,'last')-1

거의 3년 전 | 3

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

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

거의 3년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
Variable handling problem with parfor
I would try as below. This will be faster than your original version anyway, even before the conversion from for to parfor. if ...

거의 3년 전 | 0

| 수락됨

더 보기