Community Profile

# Amin Gan

17 total contributions since 2015

View details...

Contributions in
View by

Question

How to define Proportional Integral (PI) controller as a function (from script), to generate C code?
The general form of PI controller is Kp+ Ki/S (laplace). I used this following code: function s=controller(kp,ki) s = t...

fast 5 Jahre ago | 0 answers | 0

### 0

Question

How to plot two n*n matrices in same plot?
I have two N1*N1 and N2*N2 matrices (both are same size 5000*5000). Need to plot each column of N1 with each column of N2 ( ...

fast 5 Jahre ago | 1 answer | 0

### 1

Question

How to fit histogram into a graph?
There is a graph which made from mixture Gaussian distribution (attached file). How can I fit histogram bins into that graph....

fast 5 Jahre ago | 0 answers | 0

### 0

Question

How can I make a normal distribution with n*n matrix?
Matrix A is 1000*1000 in size. I want to make normal PDF of each row( for example A(1,1:1000) and then A(2,1:1000) and...), by ...

mehr als 5 Jahre ago | 1 answer | 0

### 1

Question

How to mesh with three set of data?
I have three same size vectors. I use: tri= delaunay(A, B); trimesh(tri, A, B, C) but I am not happy with the result....

mehr als 5 Jahre ago | 0 answers | 0

### 0

Question

how to multiply one array of vector in another ?
There are two same size vectors,A and B (1*2000 in size). for each value of A must be used in equation below for all B values...

mehr als 5 Jahre ago | 1 answer | 0

### 1

Question

how to multiply one array of vector in another ?
There are two same size vectors,A and B (1*2000 in size). for each value of A must be used in equation below for all B values...

mehr als 5 Jahre ago | 1 answer | 0

### 1

Question

How to solve equation with n data and select the maximum value of each answer?
I have a vector(A) with 2000 different values(1*2000). I want to solve equation below and for each value of A I have two diff...

mehr als 5 Jahre ago | 2 answers | 0

### 2

Question

How to add two matrices with two different dimension?
There are two matrices, A and B. A is 1000*1000 dimension. B is 1000*1 dimension. Each value of A is must be add to one...

mehr als 5 Jahre ago | 1 answer | 0

### 1

Question

How to remove repeated neighbour numbers?
I have two A and B vectors, for example: A=[9 9 8 7 6 6 6 7 9 9 10 9] B=[1 1 2 3 1 2 3 2 3 2 4 5] I want to keep only o...

mehr als 5 Jahre ago | 1 answer | 0

### 1

Question

Divide a vector size into indivisible numbers
I have a vector with size of 773 in length. Just want to make an average for every 10 elements, I use following code: A...

mehr als 5 Jahre ago | 1 answer | 0

### 1

Question

Average of every n elements of two separate vector
I have two different vectors A and B (each has 1000 numbers). Each number of A has a specific value in B (A(i,1)=B(i,1)). Some ...

mehr als 5 Jahre ago | 1 answer | 0

### 1

Question

How to make average of set of data?
I have two set of data (each 1000 numbers), A and B. Each number of A has a specific value in B (A(i,1)=B(i,1)). for example: ...

mehr als 5 Jahre ago | 1 answer | 0

### 1

How can I add a fixed interval to a set of data?
Thank you

mehr als 5 Jahre ago | 0

Question

How can I add a fixed interval to a set of data?
I have a vector with N numbers, the vector has downward/upward/downward trend (comes from a set of data). : A=[4 3 1 0...

mehr als 5 Jahre ago | 2 answers | 0

### 2

Question

The Expectation Maximization (EM) algorithm for Gaussian mixture model
I have four (N) Gaussian component with 1000 (M1:M4) random sample for each. The following is the procedure: xn=STD(n)*randn(M(...

mehr als 5 Jahre ago | 0 answers | 0