Community Profile

photo

Matt J


5.686 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
Error using && in if conditional statements
I believe your entire code can be replaced with 3 lines, [x,y,z]=ndgrid(0:N); fh=( c/2 ) * ( sqrt((x(:)/lx)^2 + (y(:)/ly)^2 ...

circa 4 ore ago | 0

Answered
Reference to non-existent field 'output' Error
I don't see where you've created handles.output. So, no wonder Matlab complains that it can't find it.

circa 5 ore ago | 0

Answered
Removing Rows from Character Vector?
Works fine for me, Materials=["Iron";"Steel";"Wood";"Cheese"]; DF=logical([1 0 0 1].'); >> MaterialsFinal = Materials(DF) ...

circa 6 ore ago | 0

| accepted

Answered
Change in Intrinsic Parameters
Auto-focus seems like a highly probably explanation. If the focal length is physically changing, then the calibration code is d...

circa 8 ore ago | 0

Answered
Why does skeletonization sometimes reduce horizontal rectangles to single pixels?
It is because the lower rectangles have an even number of rows, so their "center line" in continuous space does not coincide wi...

circa 9 ore ago | 0

Answered
What should I do if Fsolve can not find a solution in the middle of the solution ?
Look what it says: Equation solved! Isn't that great?

1 giorno ago | 2

Answered
Array Indexing, Array within an Array
Because, by definition, B(D,:) = [ B(D(1),:) ; B(D(2),:) ; B(D(3),:) ] = [ B(1,:) ; B(1,:) ; B(1,:) ...

1 giorno ago | 0

| accepted

Answered
Combining multiple tables together
I thought it would be easy to combine them by essentially stacking them on top of each other It is that easy, A=array2table(ra...

1 giorno ago | 0

Answered
How do I display the terms of a binomial expansion (x+y)^n ?
One way, n=4; e=0:n; C=arrayfun(@(i)nchoosek(n,i),e); sprintf('%d*x^%d*y^%d ',[C;e;n-e]) '1*x^0*y^4 4*x^1*y^3 6*x^2*...

1 giorno ago | 0

| accepted

Answered
Nonlinear data fitting using lsqnonlin for multiple variables
There's nothing special involved, a=___ b=___ y=___ x0=___ xlsq =lsqnonlin(@(x) modelfun(x,a,b,y), x0) function F=mode...

1 giorno ago | 0

| accepted

Answered
Error "Too many output arguments" from fmincon
Do you mean I choose 'on' for the option "GradObj'' and 'GradConstr' and need to switch them to 'off'? Either switch them off o...

2 giorni ago | 0

| accepted

Answered
can any body find the mistake here? I am rotating the coordinates of the arc and then bringing it to its original position. but it is not coming back to its original position ????!!!!
Some observations, You never use a11,b11 anywhere. After rotating back, you perform a translation by x_origin, y_origin. In ot...

2 giorni ago | 0

| accepted

Answered
Passing object instances.
Yes, you can. You can pass any variable to a function.

2 giorni ago | 0

Answered
Help with lsqnonline VLE (vapor liquid equilibrium) data.
x = lsqnonlin(@(x) optim(x(1:6),x(13),x(14),R,T,B11,VV,x(7:12),vL,n1,n2,Pe),x0);

2 giorni ago | 0

Answered
Valid indices are restricted in parfor loops
You need to get familiar with Sliced Variables and their restrictions. Basically, if you have an expression like state(expr,k) i...

2 giorni ago | 2

| accepted

Answered
Find all combinaisons of sum of two vector that corresponds to the value of a third vector
tolerance=1e-6; [A,B,C]=deal(A(:),B(:),C(:)); %Make everything a column vector [Ar,Br,Cr]=deal(A,B.' , reshape(C,1,1,[]) )...

2 giorni ago | 0

| accepted

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

3 giorni ago | 0

| accepted

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'...

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

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

4 giorni ago | 0

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

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

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

6 giorni ago | 2

| accepted

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

6 giorni ago | 1

| accepted

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

6 giorni ago | 0

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

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

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

6 giorni 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

6 giorni 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); ...

7 giorni ago | 0

Load more