
Matt J
Professional Interests: medical image processing, optimization algorithms
PLEASE NOTE: I do not read email sent through my author page. Please post questions about FEX submissions in their respective Comments section.
Statistics
ランク
6
of 260,079
評価
24,474
貢献
216 質問
9,530 回答
回答採用率
74.54%
獲得投票数
3,211
ランク
of 111,639
貢献
0 問題
0 解答
スコア
0
バッジ数
0
貢献
0 投稿
貢献
0 パブリック チャネル
平均評価
貢献
3 Highlights
AVERAGE NO. OF LIKES
2
Content Feed
matlab function on a grid along third dimension
No, you can't. However a 3x3x3 array is too small for a loop to suffer any serious penalties.
約7時間 前 | 0
How to eliminate the elements in an array from another array when there are repeated elements in both arrays?
A = [ 1,2,2,2,3,4]; B = [1,2,2,3]; Au=[unique(A),inf]; reps=max( histcounts(A,Au)-histcounts(B,Au) ,0); C=repelem(Au...
約7時間 前 | 0
How to shuffle randomly first raw of a matrix so its corresponding value in the column shuffles with it
X=rand(2,5) X=X(:,[3,1,5,4,2])
約7時間 前 | 0
Restricting solutions using lsqnonlin with complex unknowns
l1,L2,L3 are complex numbers, where the real and imaginary part are two sepparate unknowns, If so, then you have 12 unknowns, ...
約18時間 前 | 0
| 採用済み
Incorrect lsqcurvefit fitting, stays in initial guess
xdata =[2.00E-05 2.45E-05 3.00E-05 3.70E-05 4.55E-05 5.55E-05 6.75E-05 8.25E-05 1.01E-04 ... 1.24E-04 1.51E-04 1.85E-04 2.2...
1日 前 | 0
| 採用済み
how to find a normal vector?
In my case, P1 point wil be the V0 and P1 for this function. You need 3 distinct, non-colinear points in a the plane to calcula...
1日 前 | 0
| 採用済み
How to have elementwise multiplication expand in two dimensions?
C=A.*reshape(B,[16,16,3,1,7]); C=reshape(C,[16,16,3,700]);
1日 前 | 1
| 採用済み
Can I disable intermediate calculations for fmincon
Since you are specifying the objective gradient, finite difference calculations will not be executed for that particular piece o...
2日 前 | 0
| 採用済み
How to vertically concatenate certain fields of a structure on each pass of a loop?
clear results for k=numel(files):-1:1 ..... data=pulldata(filename); results(k)=analyzedata(data); end ...
3日 前 | 1
string matrix navigation with character string
DataSour = ["Do" "Ri" "Mi"; "AA" "VV" "Fa"; "SS" "BB" "Do"; "Do" "yy" "zz"]; ToAssign = "Do"; [ColPos,RowPos]=find(DataSour'...
10日 前 | 0
Eig takes too long
Does anyone have any suggestions or advice that can help speed up this calculation if that is even possible? I don't think the...
10日 前 | 0
How to resolve : increase max function value in fitting using fminsearch?
If you have the Curve Fitting Toolbox, [x,y]=readvars('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1034515/d...
10日 前 | 0
How to resolve : increase max function value in fitting using fminsearch?
You could do as the message says and increas MaxFunEvals, but for your model, it would be better to download fminspleas, https:...
10日 前 | 0
| 採用済み
Calculation of the surface area of a generic solid
One way might be to read the stl file into a triangulation object using stlread. With the triangulation object, you can use free...
10日 前 | 0
送信済み
spatialgraph2D
Creates a graph object with 2D spatial locations associated with the nodes
11日 前 | ダウンロード 7 件 |

Concatenate into a matrix is not saving and is overriding every iteration?
Ns=numel(subjs); Nt=numel(time); percent_change=cell(Ns,1); for s = 1:Ns subj = subjs{s}; for i = Nt:-1:1 ...
12日 前 | 1
| 採用済み
How to create transformation matrix
You wouldn't use a transformation matrix to execute a deformation like that. You would just use griddedInterpolant or interp3 to...
12日 前 | 0
Revolving a 2D plot around its vertical axis to generate 3D surface
https://www.mathworks.com/matlabcentral/answers/1716995-revolving-a-curve-about-the-y-axis-to-generate-a-3d-surface#answer_96206...
13日 前 | 0
| 採用済み
How to pass from a set of points to lines interpolating them?
Image=load('codice_opcode.mat').out; B=bwboundaries(Image); B(1)=[]; imagesc(Image); colormap(gray); axis image; hold on...
14日 前 | 0
| 採用済み
How to group logical numbers in a vector?
Use this: https://www.mathworks.com/matlabcentral/fileexchange/78008-tools-for-processing-consecutive-repetitions-in-vectors ...
14日 前 | 0
| 採用済み
Cycle for to save a matrix
[nr,mr]=size(Range_compression); [time_compression,range_compressed]=deal(nan(nr,mr)); for i=1:mr [time_compression(...
15日 前 | 0
| 採用済み
Find pattern in vector while ignoring/skipping certain indices
vec=[0 4 1 0 6 5 0 8 7, 3 3 3 , 0 4 2 0 6 4 0 8 6]; %patterns start at i=1 and i=13 pat = [0 4 nan 0 6 nan 0 8 nan]; ...
15日 前 | 0
How do I convolve a periodic rect function with comb function
Another possibility is to download interpMatrix https://www.mathworks.com/matlabcentral/fileexchange/26292-regular-control-poin...
16日 前 | 0
How do I convolve a periodic rect function with comb function
X=1; Y=2; rect=@(s) 0<=s & s<=1/2; r=@(s) rect(mod(s+1/4,1)); [x,y]=meshgrid(-3*X:0.01:+3*X, -3*Y:0.01:+3*Y); P=r(x/X).*...
16日 前 | 0
| 採用済み
Multiple toolboxes with lots of redundant features?
The issue you've raised would only be a problematic one if it somehow forced people to buy more toolboxes than they should need....
16日 前 | 0
How to plot the following surface
fsurf(@(x,y) sqrt(x.^2+y.^2)+1, [-3 3 -3 3] ) zlim([1,3])
16日 前 | 1
| 採用済み
How to plot the following surface
fimplicit3(@(x,y,z) (z-1).^2-x.^2-y.^2, [-3 3 -3 3 1 3] )
16日 前 | 1
Sum elements over indices in cell array
Once you've split things into cells, there is nothing faster than a loop. The better data organization would be to use group lab...
16日 前 | 0
| 採用済み