Community Profile

photo

Matt J


Last seen: Today
7,883 2009 年以降の合計貢献数

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.

連絡する

Matt J's バッジ

  • Personal Best Downloads Level 4
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Master
  • Revival Level 4
  • 36 Month Streak
  • Thankful Level 4
  • Knowledgeable Level 4
  • First Answer

詳細を表示...

貢献した分野
表示方法

回答済み
Extending a 2D lattice of points
You can use scatteredInterpolant() or griddata().

約19時間 前 | 0

回答済み
Fmincon - Variable dependent constraints
If you wish, you can download prob2matrices() and use the problem-based framework to help set up the linear constraints. x=opti...

約20時間 前 | 1

回答済み
Tridiagonal Matrix with subdiagonal and main diagonal is also matrix
Here's another way, probably much faster. N=1000; a1=4;b1=-1; A =diag(a1*ones(1,N-1)) + diag(b1*ones(1,N-2),1) + diag(b1...

約23時間 前 | 0

回答済み
Tridiagonal Matrix with subdiagonal and main diagonal is also matrix
So, you want a block Toeplitz matrix? N = 5; A =diag([7 4 4]); B=[8 8 10; 2 5 2; 10 8 7]; C=zeros(3); blocks={C,B,A}; ...

1日 前 | 0

| 採用済み

回答済み
Non-square FFT
There's probably no significant efficiency to be gained if you just want to get rid of half of the frequencies, as in the examp...

1日 前 | 0

回答済み
Optimize Function with two sums using fmincon
k = [5,7,11,13]; p = [1:4]; a0 = [pi/10, pi/8, pi/7, pi/5]; weights=(1./k.^4); weights=weights/sum(weights); fun = @(a)...

2日 前 | 0

回答済み
Add missing numbers between elements in an array
Var1= [1 1 2 4 5 7 7 7 8 10 11 13 14 14 17 17 17 17 18 20]; Var2= [0.5 0.3 0.1 0.6 0.2 0.4 0.8 0.9 0.3 0.2 0.1 0.4 0.8 0.7 0.5 ...

2日 前 | 0

回答済み
User defined function that evaluates anonymous function with variable number of inputs
The code would be a lot more efficient and tidy if you had the anonymous function accept an MxN array X. fun=@(X) X*[2,-1,-3,+9...

2日 前 | 0

回答済み
Problem is unbounded with linprog
Another way to verify that there is no solution is to look at the dual linear program. min. 8*u+4*v s.t. 2*u +2*v >= ...

3日 前 | 0

回答済み
How to color grids underneath a curve and also gradient the grids depending on how much is within curve?
One way, xCenter = 10; yCenter = 10; radius = 10; theta = linspace(180, 270, 50); x = radius * cosd(theta) + xCenter; y = ...

3日 前 | 0

回答済み
Can I speed up this matrix multiplication?
For example, the size of Q is 1000x1000, but its rank is 10. If so, then we can decompose Q into a short sum where and are t...

3日 前 | 1

| 採用済み

質問


Malwarebytes thinks these Matlab files are malware
Malwarebytes flagged the 4 files below from my R2020b installation. Has anyone else experienced this? Can I safely assume it's a...

3日 前 | 0 件の回答 | 1

0

回答

回答済み
sum of kronecker products(four loops)
For me, the following test for N=20 gives a very low percent error, so I would bet that the two are equivalent. N=20; [var1,va...

4日 前 | 0

回答済み
Version MATLAB 2020b: How can i convert an array to cell array with specific size?
output=mat2cell(MP1,1,Set)

4日 前 | 0

| 採用済み

回答済み
How can the data point, where values start to increase for the first time in a data, be found, as this increase continues at the following 30 values?
This uses the File Exchange contributions groupTrue and groupFcn (Download): G=groupTrue( diff(data)>0 ); g=find( groupFcn(...

4日 前 | 0

| 採用済み

回答済み
Select a specific column from a 4-D array
x(1,:,1,1)

4日 前 | 0

回答済み
Calculate perimeter of a shape using x,y coordinates input to an array
pgon=polyshape(dataX,dataY); perimeter(pgon)

4日 前 | 0

回答済み
Subtracting specific places in vector using diff
1- Not with |diff(). If you wanted to do that, it would be x(2:2:end)-x(1:2:end) 2. diff(X,n) approsimates the n-th derivative...

4日 前 | 0

| 採用済み

回答済み
linearly independent or linearly dependent.
If [S,v] and S have the same rank, then the column vector v must be a linear combination of the columns of the matrix S.Testing...

4日 前 | 1

回答済み
Optimisation error_constraint
Whenever Matlab complains that a variable is the wrong type, you should look at the variable you've made and check what type it ...

4日 前 | 0

| 採用済み

回答済み
expanding matrix with linear line between new samples
B=[1 0 0 0 2 0 0 3]; x=find(B~=0); xq=1:numel(B); B=interp1(x,B(x),xq)

5日 前 | 0

| 採用済み

回答済み
How to fill 3D array using for loop with data z allocated to specific x and y values
X=[0.5;0.5;0.6;0.6]; Y=[0.6;0.7;0.6;0.7]; V=[1.0794;1.1794;1.1646;1.2646]; [I,J,K]=ndgrid(1:le...

5日 前 | 0

| 採用済み

回答済み
Too many output arguments while solving a constrained optimization problem.
You are reporting multiple different errors in multiple different places from multiple different Matlab versions, so it is a lit...

5日 前 | 0

| 採用済み

回答済み
Counting distinct elements in a vector?
numel(unique(A)) or max(findgroups(A))

5日 前 | 0

| 採用済み

回答済み
Too many output arguments while solving a constrained optimization problem.
I get no problem in R2020b once the last line is modified to, prob.solve(x0)

5日 前 | 0

回答済み
How can I give a rotational velocity to spheres?
This uses AxelRot from the File Exchange (Download): figh = figure; %%Axes ax = axes('XLim',[-4 4],'YLim',[-4 4],'ZLim',[-4...

5日 前 | 0

| 採用済み

回答済み
Can I speed up this matrix multiplication?
I have tried gpuArray, but it cannot be faster than normal Matlab * operation (maybe my GPU is not good enough..) Depending on...

6日 前 | 1

回答済み
Can you organize scatter plot points?
This may be more along the lines of what you were originally looking for load Data; w=max( max(data,[],1) - min(data,[],...

6日 前 | 0

回答済み
Is there a way to vectorise this vector/matrix product?
G=real( sum((R*W).*conj(W),1) );

6日 前 | 2

| 採用済み

回答済み
Plot a best fit ellipse on a polar data set
Yes, it's possible, although the the quality of the fit will be affected by how clustered and how noisy your data is. For the fi...

6日 前 | 0

| 採用済み

Load more