Community Profile # Matt J

Last seen: Today 2009 以来アクティブ

Professional Interests: medical image processing, optimization algorithms

#### Statistics

All
• • • • • • • • • • • バッジを表示

#### Content Feed

Entering data into cell array
noble_gases{1,1}="Hydrogen"; noble_gases{1,2}="H"; etc...

Sum matrix column orderly
B=conv2(A,ones(15,1),'valid').';

Transformation matrix (projective2d) change of origin at application
You should use the OutputView option to specify a coordinate system for the output with the origin in the center.

Plotting ellipses around the data points and circle around the cluster points
At the very end of the the Examples tab of https://www.mathworks.com/matlabcentral/fileexchange/87584-object-oriented-tools-for...

How do I get values of a certain parameter in a multi-dimensional matrix?
b should be an Nx1 vector where N is the number of elements satisfying A<10000.

Wrong ROI Ellipse rotation angle documentation?
In the coordinate conventions of the Image Processing Toolbox, the Y-axis points downward and the Z-axis is pointing into the sc...

vectorisation of a loop
A=pdist2(Sea,Sea); A(A<0.05)=[];

How can I assign a single column of a 0x10 empty table
I cannot use a struct or array. The datatype must remain as a table. You cannot avoid wokring with arrays as an intermediary, ...

Find longest consecutive sequence in 3d matrix
Using, https://www.mathworks.com/matlabcentral/fileexchange/78008-tools-for-processing-consecutive-repetitions-in-vectors [M,...

1日 前 | 0

| 採用済み

Find argmin of function with two input variables
MATLAB keeps returning Empty sym: 0-by-1 and I don't understand why. Any help? The solution to diff(La,x1)==0 is x1 = -0.5, whi...

1日 前 | 0

| 採用済み

Does the code run on the GPU after transferring data to the GPU using the gpuArray function？
Any operations you do on a gpuArray object will be done on the GPU. Operations you do on other objects (not gpuArrays) will be e...

1日 前 | 0

I cannot figure out how to fix this error "Objective function is returning undefined values at initial point. fsolve cannot continue."
I suspect you meant to have 6 values in x0 rather than 7. x0=[1,1,1,0.02,0.02,0.02];

2日 前 | 0

How to apply an equation to each element in the array?
conv( u , [0 1 0]+alpha*[1 -2 1] )

3日 前 | 1

| 採用済み

How do I produce all possible permutations of a vector, selecting a chosen number of elements?
a=[4,17,13,5,1,90]; n=3; P=perms(1:n).'; b=nchoosek(a,n).' ; out=reshape( b(P(:),:),n,[]).'

3日 前 | 0

| 採用済み

How to update constraint in nonlinear optimization
Divide into 3 sub-problems. Solve with the constraints (1) y<=20 and NLcon (2) 20<=x<=40, y<=20, and NLcon (3) y>=20 and NLco...

5日 前 | 0

| 採用済み

Im trying to run fsolve inside a for loop but it seem that my second iteration inside the for loop is not able to read the initial trial point
Should the division be by Afull(i)? F = @(GG)[slopeACdisp(i)-((GG(2)-Cdispy)/(GG(1)-Cdispx(i))); -tau+(0.5*abs((G...

5日 前 | 0

Accessing (interpolating?) data in 3D array
You could use griddedInterpolant() array=rand(290,480,90); F=griddedInterpolant(array); extract=F({linspace(4,8,10), 400:...

5日 前 | 0

| 採用済み

Problem with parfor with two variables
Do you need to see the toc output in real time? If not, just save it until later: %% My code Y_1 =nan(N,numel(alpha),numel(bet...

7日 前 | 0

Converting Structure into 3d Matrix
Matrix=cat(3, all_frames.Frame); However, you will need generous RAM. Your all_frames structure already consumes about 5 GB in...

7日 前 | 0

| 採用済み

Optimization Problem but don't have closed form expression
The problem is that I dont have a closed form expression for B_k in terms of μ_k. if I have a set of values for μ_k to get the c...

7日 前 | 0

how to generate integer sequence number by logistic map?
function [z] =logistic(r,N) %sequence is chaotic where 3.57 < r < 4. %r = 3.8; % r parameter for chaotic regime %size ; % siz...

7日 前 | 1

| 採用済み

circle inside triangle tangent points
You can find the circle using incircle in this FEX submission https://www.mathworks.com/matlabcentral/fileexchange/34767-a-suit...

7日 前 | 0

fmincon gets very slow after few time
A few more performance optimizations that you should consider: maps = zeros(rows,columns,3,'single'); %<------ post conversio...

7日 前 | 1

fmincon gets very slow after few time
I suspect samsid() is just not as smooth or well-conditioned as mse() for some pixels, and therefore takes more iterations to te...

7日 前 | 0

Restore toolbar buttons to app after migration from GUIDE
After using the Guide-to-AppDesigner migration tool, my app no longer has the standard figure toolbar buttons in the app figure ...

8日 前 | 0 件の回答 | 0

### 0

Finding intersection points in a square.
Yes, you can use, https://www.mathworks.com/matlabcentral/fileexchange/93470-intersections-of-multiple-2d-lines-or-line-segment...

8日 前 | 0

Trying to understand behavior of holes in alphaShapes.
I found the following in posted material for a course at Stanford. It's a pretty intuitive explanation of how alpha shapes work,...

8日 前 | 0

| 採用済み

Function to compute product of all numbers from 1 to n
integerproduct(5) function r = integerproduct (n) if n==1, r=1; return; end r=n*integerproduct(n-1); end

8日 前 | 0

| 採用済み

Replacing Negative Values in Table with Previous Value in Column
T(:, {'D', 'E'}) = num2cell( fillmissing([D,E], 'previous') );

8日 前 | 0

| 採用済み

How do I create a 2D mesh of triangular elements?
Yes. Or triplot().

8日 前 | 0

| 採用済み