Community Profile

photo

Matt J


6,122 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.

連絡する

Matt J's バッジ

  • Personal Best Downloads Level 4
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Master
  • Revival Level 4
  • 36 Month Streak
  • Thankful Level 4
  • Knowledgeable Level 4
  • First Answer

詳細を表示...

貢献した分野
表示方法

回答済み
Error while using blockproc. Matrix dimensions must agree.
Matrix dimensions must agree. Error in dct (line 76) b = W .* fft(y); It would appear that W and y are not the same size....

約5時間 前 | 1

| 採用済み

回答済み
Form a 3D matrix for a 2d matrix
NewM3D = reshape(ExitVector,size(M3D));

約8時間 前 | 0

回答済み
how can i bound rate of changes (dx/dt) in fmincon optimization?
See https://www.mathworks.com/matlabcentral/answers/490758-limit-on-the-change-rate-of-the-variable-in-fmincon-function#answer_...

約9時間 前 | 0

回答済み
Limit on the change rate of the variable in fmincon function
You would build linear inequality matrices like the following. E=diff(eye(numel(u))); A=[E;-E]; b=[ub(:);-lb(:)]; %linear ...

約20時間 前 | 1

回答済み
Multiplication in cell arrays
result = cat(3,precip{:}).*reshape(numbers,1,1,[]); There seems little reason either for precip to be a cell array or to turn t...

約22時間 前 | 0

回答済み
Regular expression for 1*1 cell array
c='<string_attribute name="country"><s>CHINA5</s></string_attribute>'; out=extractBetween(c,'<s>','</s>'); >> out{1} an...

1日 前 | 1

回答済み
Weighted fit with lsqcurvefit and (ideally) multistart?
Just apply whatever weights you want to the objective and to your ydata, fun=@(x,xdata)kinetics_full(x,xdata).*sqrt(weights); ...

1日 前 | 0

回答済み
Rotate matrix with interp2
This might be what you want. [X,Y]=meshgrid(x-mean(x),y-mean(y));

1日 前 | 0

回答済み
Finding angle of rotations from a given unit vector to rotate a given vector using those angle to align with the previous unit vector
The following might be what you're looking for. It uses my AxelRot utility from the File Exchange https://www.mathworks.com/mat...

2日 前 | 0

| 採用済み

回答済み
Nested For Loop for 2D Matrix
I vaguely wonder whether you are just re-inventing convolution result = conv2(Matrix,staticMatrix,'valid');

2日 前 | 0

回答済み
Nested For Loop for 2D Matrix
So then you want to extract random 51x51 submatrices? If so, then, I=sort(randperm(600,51)); J=sort(randperm(1000,51)); sub...

2日 前 | 0

| 採用済み

回答済み
The result of rotation matrix rotx(angle) with a coordinate does not give the desired result
Here's what my AxelRot utility gives https://www.mathworks.com/matlabcentral/fileexchange/30864-3d-rotation-about-shifted-axis?...

2日 前 | 0

回答済み
how can I find the coordinates of the central axis of a river in an image (binary)?
load River C=watershed(bwdist(A))==0; [icoords,jcoords]=find(C); %coordinates of center line imshow(A+C)

2日 前 | 2

| 採用済み

回答済み
Count the number of intersections between any two curves
The only general way (i.e., for arbitrary curves) is using the Symbolic Math Toolbox, solve(curve1==curve2)

2日 前 | 1

回答済み
How to match a number between two characters?
>> str=extractBetween("[180] Windabweichung","[","]") str = "180"

2日 前 | 0

| 採用済み

回答済み
How to match a number between two characters?
>> T=regexp('[180] Windabweichung','\[(\d+)\]','tokens'); T{:} ans = 1×1 cell array {'180'}

2日 前 | 0

回答済み
Images as the Options in a Drop Down Menu
See here, https://undocumentedmatlab.com/blog/icon-images-in-matlab-uicontrols

3日 前 | 1

回答済み
License Manager error -96 (of matlab 2018b)
This may help https://www.mathworks.com/matlabcentral/answers/95122-why-do-i-receive-license-manager-error-96?s_tid=answers_rc1...

5日 前 | 0

回答済み
how can i find the stationary points of this equation and find its nature in the region x>0.
You can use diff to get numerical approximations of the derivatives and apply stationary point criteria based on those. If need...

5日 前 | 0

回答済み
The best way to write a large number of constraints for an optimization problem
If they are linear constraints, they will be expressed using matrix-vector multiplication A*x<=b Aeq*x<=beq so any vectorized...

7日 前 | 0

| 採用済み

回答済み
How do I remove NaN values from a cell array?
The presence of NaNs isn't the problem. The problem is that the cell contents are character vectors of different lengths. You ca...

7日 前 | 0

| 採用済み

回答済み
Fmincon linear contraint doens't work in my case
You should check the EXITFLAG output to see if fmincon believes it converged. If it did converge, the ranges should be satisfied...

8日 前 | 0

回答済み
How can i create a convolution using toeplitz matrix?
Consider >> x=1:5, y=rand(1,5), x = 1 2 3 4 5 y = 0.2899 0.4714 0.8782 0.6555 ...

8日 前 | 0

| 採用済み

回答済み
fminunc: get Hessian approximation after each iteration
You could try running fminunc 1 iteration at a time in a for-loop and saving the 6th output arguments, options.MaxIter=1; ...

8日 前 | 0

| 採用済み

回答済み
Using FFT in for-loop is extremely slow - how to accelerate?
To conserve memory, I only store the results for x,y,z inside the mask. It would be straightforward to re-embed them in 4D array...

8日 前 | 0

回答済み
Can someone propose some code that will "connect the dots" to produce the correct geometric shapes (i.e., hexagons, pentagons, rectangles) from these points?
Here is a refinement of my earlier answer which I think performs better. It uses the attached classdef file to create objects re...

9日 前 | 1

回答済み
Create matrix (30 x 12) with numbers from 1 to 12 without repetition without any repetitions of following numbers for each row
Note that there are only >> nchoosek(12,2)*2 ans = 132 distinct subsequences of length 2 that can be drawn from the numbe...

9日 前 | 0

回答済み
Can someone propose some code that will "connect the dots" to produce the correct geometric shapes (i.e., hexagons, pentagons, rectangles) from these points?
This seems to do it. For the display part, it uses plotpts2d, which you've seen before. maxDistLine=10; %User tolerance s...

12日 前 | 0

| 採用済み

回答済み
Data: Interp1 spline and cubic method
how would you approximate this data using the Interp1 function and spline method For example, year=[1;2;3;4;5;6;7;8;9;10]; po...

12日 前 | 1

| 採用済み

回答済み
Can I set restrictions on the output matrix from "linprog" before solving?
If X is constrained to be binary (using intlinprog rather than linprog), then this condition is equivalent to the linear inequal...

13日 前 | 0

Load more