Community Profile # MA

Last seen: 2 months ago Active since 2019

#### Statistics

• • #### Content Feed

View by

Question

How to tell two categorical arrays with different categories names are the same
Assume I have two categorical arrays as for example the following: X=[1,1,2,3]; y=[3,3,1,2]; The two arrays have different cl...

5 months ago | 1 answer | 0

### 1

I actually solve it. For anyone looking for the same problem: function [y,dx]=cov_der(x) %simple example %x=dlarray(and(3,3)...

8 months ago | 0

| accepted

Question

Assuming I have a matrix x of size (mxn), the covariance matrix is of the size nxn. I want to find the gradient of the covarianc...

8 months ago | 2 answers | 0

### 2

error message: 'dlgradient' inputs must be traced dlarray objects or cell arrays, structures or tables containing traced dlarray objects. To enable tracing, use 'dlfeval'.
It seems I solve it. The parameters needs to be dlarry as well as follows: parameters.batchnorm1.Offset = initializeZeros([5 1...

8 months ago | 0

| accepted

Question

error message: 'dlgradient' inputs must be traced dlarray objects or cell arrays, structures or tables containing traced dlarray objects. To enable tracing, use 'dlfeval'.
I want a small network that contains only a batch normalization layer followed by fully-connected layer, softmax and finally cro...

8 months ago | 1 answer | 0

### 1

Question

convolution of multiple images with multiple filters
Let's assume I have a set of images in one variable X, where the size of this variable is 4D [width, height, channels, number of...

10 months ago | 1 answer | 0

### 1

Question

a simple vector to a matrix
Hello everyone, I am trying to write a code that convert a vector like the following for example: X=[1 2 3]; to a matrix l...

10 months ago | 2 answers | 0

### 2

Question

Multiplication of very large matrix
Hello everyone, Could anyone help me in re-writing the following equation to make the processing faster. N here is the number ...

1 year ago | 1 answer | 0

### 1

Question

generalized eignvalues/eignvectors
I want to solve the following generalized eignvalues/eignvector problem: A*w=D*B*w Where A is my first square matrix and B my...

2 years ago | 1 answer | 0

### 1

Question

accuracy of two methods to solve eignvalues/eignvector problem
I am trying to solve an eignvalue/eignvector problem related to the multi-class LDA. The equation is inv(Sw)*Sb. I have two solu...

2 years ago | 1 answer | 0

### 1

Question

combine each 8 matrices in a cell array
I have a cell array that contain matrices of the same dimentions. I want an effictive way to combine each 8 matrices together in...

2 years ago | 1 answer | 0

### 1

sample from data according to a class with no replacement
I just solve it. So, for anyone who is looking for an answer, it is the following: new_sample= datasample(X(T==L,:),K,'replace...

3 years ago | 0

| accepted

Question

sample from data according to a class with no replacement
Lets say that I have a matrix n*m where n represented the instances while m representing the attributes. I have another column v...

3 years ago | 1 answer | 0

### 1

Create variable from an excel entry
% you may need something like the following Plot.Shift=xlsread('filename.xlsx',1,'B1'); %file name, row number, column numb...

3 years ago | 0

find all elements (cells) of a single element (cell) in cell array
I found the answer if anyone is looking for something similar for i=2:size(c,1) if (isequal(c{1,1},cell2mat(c(i,:)))) index=...

3 years ago | 0

| accepted

Question

find all elements (cells) of a single element (cell) in cell array
I have the following cell array (c) which is 3*2. Now I want to find all elements of lets say c{1,1} which is [3,2]. The answer ...

3 years ago | 2 answers | 0