Community Profile

photo

Matt J


5,665 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
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.

약 19시간 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 ...

1일 ago | 2

| accepted

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

1일 ago | 1

| accepted

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

1일 ago | 0

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

1일 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...

1일 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 ...

1일 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

1일 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); ...

2일 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) );

3일 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...

4일 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...

4일 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 ...

4일 ago | 0

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

5일 ago | 0

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

5일 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...

5일 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, ...

5일 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...

6일 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).

6일 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...

6일 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.

6일 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...

6일 ago | 1

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

6일 ago | 0

| accepted

Answered
Associate numeric values to object arrays
I think this is what you mean? objectList={A,B,C}; result=objectList(x+1)

8일 ago | 0

| accepted

Answered
Genetic Algorithm (GA) with integer, equality and inequality constraint
You can eliminate the equality constraints by using them to solve for some of the variables in terms of the others. If you have ...

9일 ago | 0

| accepted

Answered
From cell to matrix
c( cellfun('isempty',c) ) = {[nan,nan]}; out=cell2mat(c),

9일 ago | 0

Answered
Problems implementing my own 2d DCT function. Smearing effect
Your forward and inverse DCT code look identical. In other words, you appear to be performing the forward DCT where you intended...

9일 ago | 1

| accepted

Question


Correspondence between intrinsic axes and world axes for imref objects
Suppose I have a 3D array of image samples I(i,j,k), i=1...M, j=1...N, k=1...P. In world coordinates, pixel spacing in millime...

10일 ago | 1 answer | 0

1

answer

Answered
Indexing (extracting value from rows)
idx=sub2ind(size(A), ones(size(B)), B); A(idx)

10일 ago | 0

| accepted

Load more