Community Profile

photo

Matt J


Last seen: Today Active 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.

Statistics

All
  • Most Accepted 2021
  • Editor's Pick
  • Personal Best Downloads Level 4
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Master
  • Revival Level 4
  • 36 Month Streak
  • Thankful Level 5
  • Knowledgeable Level 5
  • First Answer

View badges

Content Feed

Question


Automatic numbering and cross-referencing of sections in Live Script
I am investigating the possibility of having automatic section numbering and cross-references in Live Script. Here is an example...

circa un'ora ago | 0 answers | 0

0

answers

Answered
Combining two matrices with different sizes
M3=zeros(600,2,7); M3(230:598,:,:)=M2; M3(250:2:600,:,:)=M1; %replace M2 with M1 M3(1:2:end,:,:)=0;%odd numbers are zer...

circa 5 ore ago | 0

Answered
Divide each column by the sum of the column in a matrix
D./sum(D)

circa 5 ore ago | 1

| accepted

Answered
How can i run this code? I get erros "Unable to perform assignment because the size of the left side is 1-by-600 and the size of the right side is 1-by-100."
for j=1:numel(H) for i= 1:numel(T) Tx = T(i); Hx = H(j); P(i,:,j) = fvdWEOSp(Tx,V,Hx); end ...

circa 5 ore ago | 0

Answered
multi array vectorization problem (reformulated)
runtest(1e2) function runtest(N) A = [ -0.8013 -0.4981; -0.2278 -0.9009]; t = 0:0.01:N; b = [2;3]; [V,d]=eig(A,'v...

circa 6 ore ago | 1

| accepted

Answered
Change the location of points in a 2D meshgrid
location=location+rand(size(location))*0.3+0.2;

circa 19 ore ago | 0

| accepted

Answered
How to formulate the following matrices?
T=makehgtform('translate',[x(i),y(i),0],'zrotate',theta(i)); T=T([1,2,4],[1,2,4])

circa 19 ore ago | 1

| accepted

Answered
bwlabeln 3D connections not a subset of its 2D connections
My guess is that the 4-connected regions are indeed subsets of the 26-connected regions, as you expect. However, in the 26-conne...

1 giorno ago | 1

| accepted

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

2 giorni ago | 1

| accepted

Answered
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

2 giorni ago | 0

| accepted

Answered
How to create a matrix?
Do you mean this? [lat,long]=ndgrid(-89.75:89.75,0.25:359.75);

2 giorni ago | 0

| accepted

Answered
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])

2 giorni ago | 0

Answered
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)).*(...

3 giorni ago | 0

| accepted

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

3 giorni ago | 0

| accepted

Submitted


Further tools for analyzing objects in N-dimensional images
A collection of tools to supplement bwpropfilt, bwareaopen, and the like.

3 giorni ago | 4 downloads |

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

3 giorni ago | 0

Answered
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 = ...

3 giorni ago | 0

| accepted

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

3 giorni ago | 0

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

3 giorni ago | 0

Answered
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(:)); ...

3 giorni ago | 0

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

3 giorni ago | 0

Answered
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)

4 giorni ago | 0

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

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

4 giorni ago | 7 downloads |

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

4 giorni ago | 0

Answered
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=...

5 giorni ago | 1

| accepted

Answered
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]);...

6 giorni ago | 1

| accepted

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

6 giorni ago | 0

Answered
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(...

6 giorni ago | 0

Load more