Community Profile

photo

Matt J


5,607 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

  • Master
  • Revival Level 4
  • 36 Month Streak
  • Thankful Level 4
  • Knowledgeable Level 4
  • First Answer

View details...

Contributions in
View by

Answered
How to perform mathematical operation between all elements of arrays with unequal numbers
Here is how you would do the subtraction A-reshape(B,1,1,p,q) %result is nXmXpxq but it will work equally well with any other...

23 minutes ago | 0

Answered
Generating function handles with large numbers of variable coefficients
I think this is what you want, but am still not totally sure. The way to calculate a sum of scalar/matrix products without expl...

17 hours ago | 1

Answered
Error when fsolve in optimization toolbox calls optimget in 2018b
So do I have to remove the path for the other tool altogether to make it work this tool? Yes, or rename it.

18 hours ago | 0

| accepted

Answered
Solve nonlinear equations in app designer
Have your app code invoke fsolve as follows fsolve(@(x)root2d(x,c) ,___________ ) where function F = root2d(x,c) ...

20 hours ago | 0

| accepted

Answered
How does the FFT zero pad
Y = fft(X,n); is the same as Xp=X; Xp(length(X)+1:n)=0; Y=fft(Xp);

21 hours ago | 2

| accepted

Answered
How to develop a function that creates a finite vector space?
You can use intersectionHull in this FEX package https://www.mathworks.com/matlabcentral/fileexchange/30892-analyze-n-dimension...

2 days ago | 0

Answered
cell2mat conversion
But is it possible to store 28 cells(10*25) in matrix form I'm starting to think you mean this [Matrix1,Matrix2,..., Matrix28]...

2 days ago | 0

Answered
cell2mat conversion
ones(size( your_1x28_input))

2 days ago | 0

Answered
cell2mat conversion
cellfun(@(c) var(sum(c,2)), your_1x28_input)

2 days ago | 0

Answered
cell2mat conversion
cellfun(@(c) min(c(:)), your_1x28_input)

2 days ago | 0

Answered
cell2mat conversion
cellfun(@(c) max(c(:)), your_1x28_input)

2 days ago | 0

Answered
cell2mat conversion
cellfun(@(c) sum(c(:)), your_1x28_input)

2 days ago | 0

Answered
cell2mat conversion
cellfun(@(c) std(c(:)), your_1x28_input)

2 days ago | 0

Answered
cell2mat conversion
cellfun(@(c) mean(c(:)), your_1x28_input)

2 days ago | 0

Answered
cell2mat conversion
cellfun(@(c) c(1), your_1x28_input)

2 days ago | 1

Answered
Undesired behaviour of bsxfun and colon-operator
bsxfun(@(x,y)x+arrayfun(@(z)sum(0:z),y),1,6:9)

2 days ago | 0

Answered
Undesired behaviour of bsxfun and colon-operator
bsxfun(@(x,y)x+y.*(y+1)/2,1,6:9)

2 days ago | 0

Answered
Parallel Matrix row operation
function out = Proj_DoubleStochasticM_reloc(Y,sparsity) [m,n]=size(Y); [I,J]=deal(sparsity); for k=1:len...

2 days ago | 0

| accepted

Answered
How to optimize parameters in the following equation
Leave lsqcurvefit aside for the moment. First, get your model function to work! It cannot even be evaluated at your initial poin...

3 days ago | 1

Answered
use 3D free form deformation for 3D image registration
There is imwarp, interpn, and griddedInterpolant.

3 days ago | 0

| accepted

Answered
Failure in initial objective function evaluation. FMINCON cannot continue
Test F1 on X0 before you give it to fmincon.

3 days ago | 0

Answered
Why does my integral not work without the command "global"
To get rid of global, implement as follows a=1; k=1; T=1; q=integral(@(t)a.*t.^k,0,T);

4 days ago | 0

| accepted

Answered
Fminunc - complex standard errrors from taking inverse of Hessian
You can also try this finite differencer to see if it gives you better Hessian calculation https://www.mathworks.com/matlabcent...

4 days ago | 0

Answered
eigs bug for 0 as lowest eigenvalue in parts of the matlab versions
From Tech Support: The issue that you are seeing is because of a bug which was introduced in R2017b, while implementing the ref...

4 days ago | 3

| accepted

Answered
Fminunc - complex standard errrors from taking inverse of Hessian
For the purpose of standard error computation, you should do a separate analytical computation of the Hessian at the final point...

4 days ago | 0

Answered
Subscripted assignment dimension mismatch.
sxint(3,:) is not a scalar, but the left hand side S(i,1) is a scalar location.

6 days ago | 0

Answered
eigs bug for 0 as lowest eigenvalue in parts of the matlab versions
That does seem like an interesting bug. This seems to work though Eg_sp = eigs(sp_matrix,1,1e-12);

6 days ago | 0

Answered
Create a vector of vector exponents
No, a for-loop is fastest, but you want to implement it the right way, with a recursive update, m=repmat(v*A,n,1); %pre-allocat...

7 days ago | 0

| accepted

Answered
subtract each pixel from average pixel value
It seems deceptively simple... Image-meanValue

7 days ago | 0

| accepted

Answered
fmincon should return a scalar value error
AC Power reetuns 8760*1 value If you know that your objective function code is returning a 8760x1 value, it should be pretty cl...

7 days ago | 0

| accepted

Load more