Answered
Channel-wise convolution deep learning layer for 1d and 3d data i.e. groupedConvolution1dLayer, groupedConvolution3dLayer
A 1D image is a special case of a 2D image, so you should be able to use groupedConvolution2dLayers for the 1D case.

3 years ago | 1

| accepted

Answered
How to create stacked bar plot where each stack is of equal height and filled partially to user desired value ?
height=1; y=rand(4,1); B=bar([y,height-y],'stacked'); axis padded B(2).FaceColor='none';

3 years ago | 0

| accepted

Answered
Inconsistent training loss curve when training UNet with and without convergence criterion
There should be a change in the training loss curve - it should be shorter. By loosening the stopping criteria, you cause fewer ...

3 years ago | 0

Answered
Initializing arrays of objects with distinct handle properties
You can also rewrite the Junk1() constructor to generate array-valued output: classdef Junk1 < handle properties(GetAccess...

3 years ago | 0

| accepted

Answered
Initializing arrays of objects with distinct handle properties
One way: x=arrayfun(@(z)Junk1,ones(3,1)) x.prop1 x = 3×1 Junk1 array with properties: prop1 prop2 an...

3 years ago | 0

Answered
How to smooth binary image
load BWImage; BW=(1-entropyfilt(BW,ones([11,5]))); BW=imclose(BW,ones([11,1])); BW=bwareaopen(BW>0.2,20); imshow(BW...

3 years ago | 0

| accepted

Answered
sort properties alphabetically in variable preview not working
You cannot change the order in which properties are displayed in the variable editor (other than to reverse it). If you want an ...

3 years ago | 0

Answered
How to compute shortest path in Graph ?
You can use the shortestpath command.

3 years ago | 0

Answered
Convert 4 numbers of 2D image frame to 3D
cat(3,im1,im2,im3,im4)

3 years ago | 0

Answered
Insufficient number of outputs from right hand side of equal sign to satisfy assignment.
Possibly, you've done something like this within the method() function: out={1,2}; [a,b,c]=out{:}

3 years ago | 0

Answered
How to find vector in array of vectors with the highest value of one component?
If I assume that p is an Nx4 array, then, [~,row]=max(p(:,2)); result=p(row,1:3)

3 years ago | 0

| accepted

Answered
fmincon optimization not running properly, stops beacuase of StepTolerance
It should give back 0.450; -0,005; -0,005. If you have that foreknowledge, you should apply lb and ub bounds as I have done bel...

3 years ago | 1

Answered
Interpolating Arrays to be Same Size
interp1(dP,linspace(1,numel(dP),numel(iP)))

3 years ago | 0

Answered
How to remove repeating entries from a vector?
You can use this FEX download, https://www.mathworks.com/matlabcentral/fileexchange/78008-tools-for-processing-consecutive-repe...

3 years ago | 0

Answered
Vectorization problem for grouping entries in an array
findgroups(B(:,2)<=1, B(:,3))

3 years ago | 0

Answered
A weird feature in the obtained function from calculating the inverse Fourier transform using ifft
IFFTs are N-periodic, so if you shift a lobe far enough to the left or right of a length N sampling, one side of the lobe will s...

3 years ago | 1

Answered
Is there an efficient way to find the indices of the closest matching values in a large matrix, to a large lookup vector?
[E1,is]=sort(E1_interp); [E2,js]=sort(Es_interp); Q_lut=Q_lut(js,is); Pitch_lut=Pitch_lut(js,is); [Q,gamma]=deal(zeros(siz...

3 years ago | 1

| accepted

Answered
The problem of noise removal after FFT of polygon mask
If you increase the sampling fineness, I expect the artifacts will diminish.

3 years ago | 0

| accepted

Answered
How to get the sequential rotational angles needed around x, y, and z axis according to the cosine direction changes?
If you have multiple start and target points, then you can find the roto-translation optimally consistent with all of them by us...

3 years ago | 0

Answered
Bi-level Optimization Problem
Sine intlinprog is called by by ga's fitness function, you will have the variables in the upper problem as input to the lower pr...

3 years ago | 0

Answered
the command linprog is incosistent when i use 'X0'
If x0 is known to be feasible, you might be able to influence the speed of convergence by modifying your constraints as below; ...

3 years ago | 0

Answered
How do I find rows that match a list of vectors without using a loop?
It would be advisable to obtain the indices as a logical matrix rather than as subscripts. This can be done looplessly with pdis...

3 years ago | 1

| accepted

Answered
Using arrayfun to enhance the performance of code in a double for loop
The gpuArray version of arrayfun may help speeds things up, but it has certain restrictions, https://www.mathworks.com/help/par...

3 years ago | 0

| accepted

Answered
Count the number of days between two conditions
I want to count the days between T > 5 for > 5 days & T < 5 for > 5 days. I hope you realize that this event occurs multiple ti...

3 years ago | 0

Answered
Loop through 3D bins to count numbers of points of each color within each separate bin
If you have followed the advice in your previous thread, https://www.mathworks.com/matlabcentral/answers/1938929-trying-to-divi...

3 years ago | 1

| accepted

Answered
Half precision using GPU
GPU Code Generation does support it, but not the Parallel Computing Toolbox, which is where gpuArray is defined.

3 years ago | 1

Answered
convolution without conv function
syms z k t real h(z)= piecewise(z>=1,1,0); x(z)= piecewise(abs(z)<=1,1,0); y1= int(x(k).*h(t-k),k,-10,10) y2= int(h(k)....

3 years ago | 0

Answered
Estgeotform3d cloud point dimensions
Perhaps use pcregistericp instead?

3 years ago | 0

Answered
How to get corresponding coordinates of vertices in a 3D volume after voxelisation?
Perhaps as follows, fcn=(z,g)interp1(g,1:numel(g),z); i=fcn(v(1),gridCOx); %v is vertex coordinate in the original space j=...

3 years ago | 0

| accepted

Load more