Community Profile

photo

Matt J


5.671 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
Understanding parfor restrictions with indexing
I think you are probably right that parfor is being excessive in this case. However, it does appear to be covered by the documen...

etwa 3 Stunden ago | 0

Answered
Concatenate Tables with/without "Join"
>> C = outerjoin(A,B,'Keys','Character','MergeKeys',true) C = 6×3 table Character Time1 Time2 ________...

etwa 6 Stunden ago | 0

Answered
Quadprog 'interior-point-convex' failure
Simply l2-normalizing the rows of A also seems to help, load('testData-Matt.mat'); opts = optimoptions(@quadprog,'Algorithm'...

etwa 24 Stunden ago | 1

| accepted

Answered
Quadprog 'interior-point-convex' failure
I don't have a pre-R2016a Matlab release readily at hand, and so I cannot compare performance. However, if the problem is simply...

ein Tag ago | 0

Answered
how can i store the solution (3D mtarix) and its value for a population of N
So the question is how to store a set of 3D matrices? Why not use a 4D matrix Configs(:,:,:,1)=X1 Configs(:,:,:,2)=X2 ... C...

ein Tag ago | 0

Answered
creating a curve from XYZ points (centreline) and then split curve into new points
Use a curve fitting function, like lsqcurvefit().

ein Tag ago | 0

Answered
Every point on 2D surface is being transformed by unknown function. How to interpolate coordinates of any point on 2D surface knowing few of them.
If you have a model of the transformation the best approach would be to do a surface fit.

2 Tage ago | 0

Answered
What does this "fsolve" message tell me?
Does a function evaulation error of (5.95853e-15 ) is not enough for the solution to be correct? Only you can know the answer ...

3 Tage ago | 2

| accepted

Answered
Vector Comparison According to Entities
[~,~,n]=unique(sort(A,1).','rows'); n=n(:).';

3 Tage ago | 1

| accepted

Answered
different matrix size after 3D interpolation
You could just use imresize3, new_SPECT = imresize3(SPECT, [512,512,263])

3 Tage ago | 0

Answered
fit curves by smoothingspline
Shouldn't this be, plot(curve3,xx,Pattern3)

3 Tage ago | 0

Answered
Single-File Object-Oriented Script?
You could just create a static class method that runs what you would normally run in the workspace of the script, classdef some...

3 Tage ago | 0

| accepted

Answered
Is there the more elegant way to do this?
You don't need the switch block. You can just do, items = get(hObject,'String'); index_selected = get(hObject,'Value'); cm ...

3 Tage ago | 0

| accepted

Answered
How to find the transformation matrix for a plat knowing the old and new coordinates of 3 points on it ?
You could use this FEX file https://www.mathworks.com/matlabcentral/fileexchange/26186-absolute-orientation-horn-s-method

3 Tage ago | 1

Answered
Can you create an array of Constraints in an Optimisation MILP problem?
The error message you are getting occurs when you do things like this, x=optimvar('Xname',252,1); y=optimvar('Xname',252,1); ...

4 Tage ago | 0

Answered
Can you create an array of Constraints in an Optimisation MILP problem?
You can just write I=1:252; MymodelRP.Constraints.NewEnergyAllocation = ( Eih(I,1)+Eil(I,1)<=Cinew(I,1) );

4 Tage ago | 0

Answered
Find n closest nonzero pixels for every nonzero pixel in an image
Using this information, I need to find the 10 closest nonzero pixels (indexed with their correponding distances to the central p...

5 Tage ago | 0

Answered
Interpolate y-values of two data sets on the same axes
ht1=sortrows([height1(:),temperature1(:)]); %pre-sort ht2=sortrows([height2(:),temperature2(:)]); Height=ht1(:,1); Temperat...

5 Tage ago | 1

Answered
Creating a vector from two points using 3 coordinates
I think this would complete your code. Times=1:10:length(Data.Time); J=numel(Times); F=nan(J,3); for j = 1:J ...

5 Tage ago | 0

Answered
Illegal use of reserved keyword "switch"
Your switch block is not enclosed in a method...end block.

6 Tage ago | 0

Answered
Error using when cell2mat (with string characters)
Try char(Matrix) or string(Matrix)

6 Tage ago | 0

| accepted

Answered
Distance of a line by camera points
Well, I have no familiarity with the 3rd party Github library that you're using. However, it is a stereo camera class. So, it sh...

7 Tage ago | 0

Answered
roots for nonlinear equation
You need to pose the problem in terms of real numbers only, [ere,fval]=fsolve(@eqns,[1,1]); ere=complex(ere(1),ere(2)) fval, ...

7 Tage ago | 0

Answered
How to inherite and intialize object values
What you've shown would work, but you have to actually assign the properties, function obj = outDef(obj1) o...

7 Tage ago | 0

Answered
Gaussian smoothing filtering of 4D data
Does anyone know if Matlab has a function to smooth 4D or 3D data? For 3D data there is imgaussfilt3 (introduced in R2015a).

7 Tage ago | 0

Answered
Gaussian smoothing filtering of 4D data
imgaussfilt is for 2D only, but it wouldn't be too hard to implement your own 4D separable Gaussian filter just by using my Kron...

7 Tage ago | 0

Answered
Illegal use of reserved keyword
You have written your code with C-language syntax. Matlab and C are not the same language.

7 Tage ago | 0

Answered
nonlinear curve fitting a function on data
Are you sure the model isn't supposed to be a Gaussian+constant? It gives a much better fit. I used this FEX file to do the fit...

8 Tage ago | 1

Answered
scatteredInterpolant in nonlinear system
Try this version, which uses nested functions instead. function nlsystem % my nonlinear system using scatteredInterpolant %...

8 Tage ago | 0

| accepted

Load more