Community Profile

photo

Matt J


Last seen: Today
7,434 total contributions since 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.

Contact

Matt J's Badges

  • 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

View details...

Contributions in
View by

Answered
feval distorted in ga after using nonlinearconstr
The main thing I see that looks out of place is that is the role of SSP_restored_1st15day. If it is a variable, I cannot see wh...

11 hours ago | 0

Answered
How can I plot ln(1-x)/x using colon operator?
x = linspace(-10^(-15),10^(-15),300); f = log(1-x)./x; plot(x,f)

16 hours ago | 0

| accepted

Answered
How to plot a graph that I already have in on paper
Yuo can use this, https://www.mathworks.com/matlabcentral/fileexchange/7173-grabit to extract the points on the curve, which y...

17 hours ago | 0

Answered
Check if nullspace is contained in another + finding intersection of 2 nullspaces.
Hints: (1) Consider [null(A), null(B)] (2) Consider [A;B]

17 hours ago | 0

Answered
Linear programming code not showing the solution
As long as your feasible set is bounded, you can use this FEX submission instead, https://www.mathworks.com/matlabcentral/filee...

17 hours ago | 0

Answered
exp(-b/x) fit, inf problem when fitting
When x goes to zero, y should go to zero as well since anything power negative infinity is zero. Only if b>=0. g = fittype('ex...

2 days ago | 0

Answered
accumulating unique indices in array
B = histcounts(A,1:max(A)+1)

2 days ago | 0

Answered
Sum subarrays of a Matrix.
Using sepblockfun https://www.mathworks.com/matlabcentral/fileexchange/48089-separable-block-wise-operations out=sepblockfun(A...

2 days ago | 0

Question


Recover former state of Matlab Editor
I had quite a few files open in the Matlab Editor, but then inadvertently closed the editor window. Is there any way to re-open ...

4 days ago | 1 answer | 0

1

answer

Answered
How to calculate reveral summations
T=triu(ones(600)); I=(1:600).' + (1:600); ur=u(:).'; sigma= (T.*ur(I))*ur(1:600).';

4 days ago | 0

Answered
How to calculate reveral summations
Use conv() or xcorr().

4 days ago | 0

Answered
How do I minimize a particular error function with lsqnonlin?
I don't see much that I think can be improved, except perhaps to formulate it so that your errors are differentiable - the lsqno...

4 days ago | 0

| accepted

Answered
Get "@" back in a table header (R2017b) when saving
For example, T=table(1,'VariableNames',"name_domain") T.Properties.VariableNames = replace(T.Properties.VariableNames,'_','@...

4 days ago | 0

Answered
How to find splitapply for multiple values
[G, idOcc,idAge] =findgroups(x.occupation,x.Age)

4 days ago | 0

| accepted

Answered
Calculation the mean of a portion of a matrix
mean( z(2:end-1,2:end-1) ,'all')

4 days ago | 0

| accepted

Answered
Rank one decomposition of a positive semi-definite matrix with inequality trace constraints
Is there any ways I could do the rank one decomposition of matrix X, such that The obvious answer seems to be to test each k to...

5 days ago | 0

Answered
create matrix of integers with specified sum in column and row
You can try to formulate it as an integer program. M=optimvar('M',[4,4],'type','integer'); Constraints.columns=sum(M,1)<=col...

5 days ago | 0

Answered
Finding Upper and Lower Indexes
A = [1;2;3;4;5;8]; B = [3.5;6;2]; c=interp1(A,A,B,'previous'); C=[c(:),c(:)+1]

7 days ago | 1

Answered
Row-normalizing large sparse matrix
The attempt you've posted will only work if vals_W is the same size as sum_vals, which can only occur when there is exactly one ...

7 days ago | 0

| accepted

Submitted


Object-oriented tools for fitting conics and quadrics
A tool set for fitting various conics and quadric surfaces, e.g., ellipses, cylinders, spheres, planes, and lines.

8 days ago | 4 downloads |

Thumbnail

Answered
Problem with fmincon fval
As Walter suggests, the multiple fvals per iteration are part of finite difference computations needed to evaluate the cost func...

9 days ago | 0

Answered
Finding a row with a certain value and the next nth rows after that
Here's an approach that uses logical indexing only: A=[ 0.9058 0.2785 0.9706 0.4218 0.0357 0.1270 0.5469 ...

9 days ago | 1

| accepted

Question


Is there a way to interactively move a plot legend in a Live Editor figure?
In a normal figure window, I can reposition a plot legend by clicking and dragging. Is it possible to do something similar in a ...

9 days ago | 1 answer | 1

1

answer

Answered
Best way to move multiple objects with a preallocated matrix of coordinates?
I see movement when I do this, xl=xlim; for b=1:1:nStarts*nCarsPerStart for h=nStarts+1:nStarts:nStarts*(t+1) ...

10 days ago | 0

| accepted

Answered
averaging images and subtracting one image from the other
For example, setA=rand(256,256,10); setB=rand(256,256,10); imageA=mean(setA,3); imageB=mean(setB,3); result = imageB-im...

10 days ago | 0

| accepted

Answered
Trying to do a curve fitting but having trouble getting it to work.
Do you happen to know why I keep getting the "local minimum possible" Because lsqcurvefit thinks it succeeded in finding a sol...

10 days ago | 0

Answered
Need help creating a variable with different names or a method for saving a variable to different names.
for k=1:K S(k).A(i,j) = readline(s); S(k).B(i,j) = readline(s); S(k).C(i,j) = readline(s); S(k).D(i,j) = readline(s); e...

10 days ago | 0

| accepted

Answered
Index in position 1 exceeds array bounds.
Notice! x=rand(5,500); x=x(1:256,1:256);

10 days ago | 0

Answered
How to find number of elements using a for loop
for i=1:numel(A), A(i)>2, end

10 days ago | 0

Load more