
Matt J
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.
Statistics
RANK
6
of 257.685
REPUTATION
24.062
CONTRIBUTIONS
214 Questions
9.383 Answers
ANSWER ACCEPTANCE
74.77%
VOTES RECEIVED
3.162
RANK
250 of 17.757
REPUTATION
5.490
AVERAGE RATING
4.90
CONTRIBUTIONS
33 Files
DOWNLOADS
367
ALL TIME DOWNLOADS
46032
RANK
of 109.940
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
3 Highlights
AVERAGE NO. OF LIKES
2
Content Feed
Imposing Constraint in FMINCON optimization problem.
x0 = zeros(1,N_plies); lb = [-ones(1,N_plies)*90 zeros(1,N_plies)]; ub = [ones(1,N_plies)*90 ones(1,N_plies)*t]; Aeq=zeros...
alrededor de 9 horas ago | 1
| accepted
How to Multiply the following matrices case?
T=rand(3,3,18); D=rand(3,1,18); M=pagemtimes(T,D(:,:)); M(:,logical(eye(18)))=[]; M=reshape(M,3,17,18); whos M
alrededor de 10 horas ago | 0
How to create a matrix?
Do you mean this? [lat,long]=ndgrid(-89.75:89.75,0.25:359.75);
alrededor de 15 horas ago | 0
Merge rows based on conditions in the coulmns
T=varfun(@(x) [x(:)',nan(1,4-numel(x))],readtable('dmp.txt'),'Group',[9,1]); T=T(:,[2,4:10,1])
alrededor de 17 horas ago | 0
Problems while trying to fit a 4-variable function with lsqcurvefit
voigt_func =@(x,xdata) x(1).*(2.*log(2)./pi.^(3./2)).*(x(2)./x(3).^2)... .*integral(@(t) (exp(-t.^2))./((sqrt(log(2)).*(...
alrededor de 19 horas ago | 0
| accepted
Error using polyfit (line 44) The first two inputs must have the same number of elements
Take a look at this.
1 día ago | 0
What is the best way set the search interval used by fminbnd?
Your minimization problem is really a root-finding problem in disguise. It is better to use fzero for such things. As you can se...
1 día ago | 0
| accepted
Submitted
Further tools for analyzing objects in N-dimensional images
A collection of tools to supplement bwpropfilt, bwareaopen, and the like.
1 día ago | 3 downloads |
What is the best way set the search interval used by fminbnd?
and I have had to "cheat" by setting the search interval to something that more tightly bounds the known correct answers for my ...
1 día ago | 0
Finding close-to-linear solution
Pre-transpose c before the optimization to avoid repeatng the tranpose every iteration. ct=c'; function outer(p,ct) E0 = ...
1 día ago | 0
| accepted
I am trying to use the function fmincon for multiple nonlinear inequality constraints, and the output given does not satisfy all the inequality constraint
As a general rule, you should avoid nonlinear constraints when they have a linear equivalent. In your case, the nonlinear constr...
1 día ago | 0
Vectorize loop to speed up
The operations look like IFFTs, though possibly you have irregular time and frequency sampling. Even so, you should possibly co...
1 día ago | 0
Vectorize loop to speed up
Fcell=cellfun(@(x)x(:),FFT,'uni',0); Fmat=cell2mat(Fcell(:)'); Tau=cellfun(@(x)x(:)',tau,'uni',0); Tmat=cell2mat(Tau(:)); ...
1 día ago | 0
Rotate the coordinate system to align an existing plane with Y'Z' plane
If you didn't obtain your plane fit with planarFit() from, https://www.mathworks.com/matlabcentral/fileexchange/87584-object-or...
1 día ago | 0
If one normalized vector is subtracted from another normalized vector, is it necessary to normalize the result?
If , it does not necessarily follows that . Example: a=rand(1,5); a=a/norm(a); b=rand(1,5); b=b/norm(b); norm(a-b)
2 días ago | 0
fsolve within fsolve -> update initial guess
function F = solvep(p,x0,par) persistent X0 if isempty(X0), X0=x0; end % some calculations x = fsolve(@(x) solvex(x...
2 días ago | 0
| accepted
Submitted
Tools for Processing Consecutive Repetitions in Vectors
A set of functions for labeling and manipulating groups of consecutively repeating elements in a vector.
2 días ago | 6 downloads |
Error using polyfit (line 44) The first two inputs must have the same number of elements
The error message has given you a big clue to where the problem is. Did you examine/verify the contents of I and fct to see if t...
2 días ago | 0
How to measure and show the center to center distance between lines at intersecting points
VDists=hypot( diff(XCrossings,1,1), diff(YCrossings,1,1)); HDists=hypot( diff(XCrossings,1,2), diff(YCrossings,1,2)); xlocs=...
3 días ago | 1
| accepted
How to formulate 2D frames if I have the origin of the frames (x, y) and the inclination angle of the frame with respect to the x-axis?
T=makehgtform('translate',[x,y,0],... 'zrotate',angleDegrees*pi/180, ... 'translate',[-x0,-y0,0]);...
4 días ago | 1
| accepted
Basic Elements in MATLAB Solutions : Geometric Modelling and CAD Solutions Part 2
function Xnew=rotation(X,x0,theta) R=makehgtform('zrotate',theta); Xnew=R(1:2,1:2)*(X-x0)+x0; end function ...
4 días ago | 0
How to get the value from Structure array ?
I want to use the centroid location in this image to crop another image then save the cropped area to separate file. I=imread(...
4 días ago | 0
arg max data type
No, but can't you just cast it to an integer type post-facto? E.g., ix=cast(ix,'uint32');
4 días ago | 0
| accepted
how can i obtain the paraconjugate of a polynomial of any degree ?
poly( conj( roots(p) ) )
4 días ago | 0
Create new matrices based on the number of unique values
M = [4 7 2; 2 4 7; 2 2 4]; x=reshape(unique(M),1,1,[]); output=(M==x)
4 días ago | 1
How can I combine two images to form an image like this?
Perhaps with this? https://www.mathworks.com/matlabcentral/fileexchange/105850-automatic-panoramic-image-stitcher-autopanostitc...
4 días ago | 1
How to get the value from Structure array ?
I=imread("https://www.mathworks.com/matlabcentral/answers/uploaded_files/996660/2_mask.png"); Ibw = im2bw(I); stat = reg...
5 días ago | 0
| accepted
I am writing a code for using "fmincon" but it is having some error, Why?
Your objective function is not returning numbers. It is returning sym variables, e.g., >> fun([0,0]) ans = (6.7465e+03*...
5 días ago | 1
| accepted
for loop to subtract row from columns
Punkte_Gesamt_D_Wasserhoehe([4:371],:)=... Punkte_Gesamt_D_Wasserhoehe([4:371],:)-Punkte_Gesamt_D_Wasserhoehe(3,:);
5 días ago | 0
How to find the maximum y-value from a window I select on a graph
Perhaps you meant, ymax = max(y1,y2) xmax = max(x1,x2)
5 días ago | 0