
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
230 Preguntas
10.535 Respuestas
35 Archivos
HighlightsCLASIFICACIÓN
6
of 276.074
REPUTACIÓN
27.422
CONTRIBUCIONES
230 Preguntas
10.535 Respuestas
ACEPTACIÓN DE RESPUESTAS
75.65%
VOTOS RECIBIDOS
3.584
CLASIFICACIÓN
227 of 18.587
REPUTACIÓN
5.920
EVALUACIÓN MEDIA
4.90
CONTRIBUCIONES
35 Archivos
DESCARGAS
462
ALL TIME DESCARGAS
49626
CLASIFICACIÓN
of 125.839
CONTRIBUCIONES
0 Problemas
0 Soluciones
PUNTUACIÓN
0
NÚMERO DE INSIGNIAS
0
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
3 Temas destacados
MEDIA DE ME GUSTA
2
Content Feed
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
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
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
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
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
| aceptada
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
| aceptada
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
| aceptada
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
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
| aceptada
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
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
| aceptada
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
| aceptada
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
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
| aceptada
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
| aceptada
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
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
| aceptada
Create unit vector for every vector in 3d array
normalize(yourArray,1,'n')
5 días hace | 0
| aceptada
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
| aceptada
How to added a attention layer in a CNN model in MatLab?
This looks relevant: https://www.mathworks.com/matlabcentral/answers/1743390-how-to-create-an-attention-layer-for-deep-learning...
5 días hace | 0
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
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
| aceptada
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
| aceptada
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
| aceptada
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
| aceptada
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
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
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