Community Profile

# Matt J

Last seen: Today Con actividad desde 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.

All

Ver insignias

#### Content Feed

Ver por

Respondida
I'm having trouble with convolution1dLayer
You need a sequenceInputLayer rather than a featureInputLayer. Also, the dimensions of the training data must be re-organized. ...

alrededor de 3 horas hace | 0

Respondida
Error on convolutional layer's: input data has 0 spatial dimensions and 0 temporal dimensions.
You need a sequenceInputLayer rather than a featureInputLayer. Also, the training data must be re-organized so that spatial dime...

alrededor de 3 horas hace | 0

Respondida
The training images are of size 224×224×3 but the input layer expects images of size 224×224×1.
imageInputLayer([224 224 3])

alrededor de 3 horas hace | 0

Respondida
How to define a step in the design interval using an optimization algorithm?
You can constrain an optimization variable to integers with the intcon argument. Then, you can multiply this variable by some sc...

alrededor de 23 horas hace | 0

Respondida
Nearest Points in a Point Cloud
See pdist2, knnsearch, and rangesearch.

1 día hace | 1

Respondida
Con2vert with 5 dimensions Error: Arrays have incompatible sizes for this operation.
I recommend using lcon2vert instead, A = [0 1 0 1 1; 1 0 0 0 0; -1 -3 1 -3 0; 2 0 -1 3 -6; 0 -1 0 0 0; 0 0 -1 0 0; 0 0 0 -1 0; ...

1 día hace | 1

Respondida
Graphing several curves of a variable for various values of a parameter
%Plotting on command window BETAS=[0, 0.2, 0.4, 0.6, 0.8]; for i=1:numel(BETAS) beta=BETAS(i); [t,y] = ode23s(...

1 día hace | 1

Respondida
removing one-voxel bridges between clusters?
Perhaps using imopen?

2 días hace | 0

Respondida
Improving efficiency and runtime to use a binary mask to sort another set of XY coordinates?
binaryMask = zeros(1868); %determine center of the circle and radius y_center = 921; x_center = 921; radius = 150; [xx, yy]...

2 días hace | 1

Respondida
I'd like to merge two different tables on matlab, how do I do that?
Time1 = ["t1";"t2";"t3"]; value1 = [374; 164; 476]; value2 = [2455;5478;2354]; value3 = [53782;35683;24682]; table1 = table(...

2 días hace | 0

Respondida
Faster way of appending data to large struct array
That is a quite a bit of data. Even in single precision, the array will consume ~3 GB. Ths should be faster, though. stats=nan(...

3 días hace | 0

Respondida
Constrained Optimization Problem With Obj Function Which Is Numerical Solution To A System Of ODE's
Perhaps you might use fmincon as follows: A=kron( eye(4) , ones(1,52)); b=[300;10;1;1]; %summation constraints Aeq=[]; beq=[];...

3 días hace | 0

Respondida
Problem with nonlinear objective function
prob.Objective.OF2 = "max"; "max" is just a string. There is no optimization expression that can be interpreted from it.

3 días hace | 1

Respondida
Sum two matrices shifted by a non integer number?
Because of the linearity of interpolation, you should not interpolate each matrix. You should sum the matrices first, then inter...

3 días hace | 0

Respondida
Optimising my data importer for large datasets
I don't see any pre-allocation of udata. Also, nothing is being done with x, so it will cut down on time if you don't create it....

3 días hace | 0

Respondida
Calculate 3D gradient of data corrisponding to a non-uniform grid
I would just compute the Jacobian matrix of the spherical to cartesian coordinate transformation and multiply the spherical grad...

3 días hace | 0

Respondida
Write the f(c) as an anonymous function
Is this correct? There is no need for abs(). Also, your division and exponentiation operations need to be element-wise, f = @...

3 días hace | 1

Respondida
3 subplots with the bottom one split in 2 vertically?
Is this what you mean? close all x = -10:0.01:10; y = cos(x); ax=subplot(2,2,[1,2]); axis square plot(x,y) ax.Position...

3 días hace | 0

Respondida
Find the elements of array with the difference between one of the remaining elements less than specified
A=[1 18 25; 26 30 11; 5 31 20]; thresh=2; [m,n]=size(A); p=m*n; D=abs( A(:)-A(:)' ); D(1:p+1:end)=inf; [I,J]=find(resh...

5 días hace | 1

Respondida
Create unit vector for every vector in 3d array
normalize(yourArray,1,'n')

5 días hace | 0

Respondida
Create multidimensional rotation matrix
howbig=541; [aclon,aclat]=deal(rand(howbig,1)); %fake input data aclon=reshape(aclon,1,1,[]); aclat=reshape(aclat,1,1,[]...

5 días hace | 0

Respondida
How to added a attention layer in a CNN model in MatLab?

5 días hace | 0

Respondida
How to conditionally define a learnable property?
If you really must have a layer with different properties, based on a conditional flag setting, it would probably be better to ...

6 días hace | 1

Respondida
Combine 3 fig. graphs in one plot to compare each other
Suppose ax is a vector of axes handles to all of your separate plots. Then, you could re-parent the axes to a TiledChartLayout i...

6 días hace | 0

Respondida
Optimization problem with cost function containing definite integral with one endpoint being part of the solution vector
You've written your functions in terms of 2 arguments (p,S), whereas fseminf expects all the unknowns to be part of one argument...

6 días hace | 0

Respondida
Tensor creation like "pageTensorprod"?
Is there an easier way? The resulting code lacks readability in my opinion. Probably not, but regardless, readability shouldn't...

6 días hace | 0

Respondida
Construct a permutation matrix from two vectors
a = [1 ; 2 ; 3]; b = [4 ; 5 ; 6]; [B,A]=ndgrid(b,a); c=[A(:),B(:)]

6 días hace | 0

Respondida
How to conditionally define a learnable property?
You could also set the learning rate of a particular parameter to zero, based on your conditional flag, https://www.mathworks.c...

6 días hace | 0

Respondida
How to conditionally define a learnable property?
An indirect solution would be to have an additional property Wknown that lets you provide an over-riding prior value for a parti...

6 días hace | 0

Respondida
Merge the four faces belonging to a tetrahedron
The process you've described doesn't uniquely determine what the new tetrahedron decomposition should be. However, you could use...

6 días hace | 0