Community Profile

# Sushil Pokharel

Last seen: 2 days ago Active since 2022

#### Content Feed

View by

Question

How to reshape the three dimensional array in 2D matrix?
Hi there, I want to reshape the 3D array into 2D matrix form: for example: I have a matrix, val(: ,: ,1) = 8 2 ...

23 days ago | 2 answers | 0

### 2

Question

How to count three pair of numbers in given matrix?
Hi there, I have a column matrix: x = [2 2 1 1 1 1 1 2 1 1 2 2 1 2 1 2 2 1 2 1 2 2 2 1 1 1 2 2 2 2 1 1 2 1 1 2 1 1 1 2 1 1 2 ...

24 days ago | 1 answer | 0

### 1

Question

How the transition probability matrix can be calculated in 2nd order markov model?
Suppose I have 3-states system; state space = {1 2}. Also, I have state sequence 1 2 2 1 1 1 1 2 2 2 2 2 1 1 1 1 1 1 2 2 2 2 2...

27 days ago | 0 answers | 0

### 0

Question

How to reshape any matrix using while loop or any other method?
Hello there, I have a matrix B of size 432000x120 and I want another matrix A of same size in such a way that: A(: , 1) = B(: ...

1 month ago | 2 answers | 0

### 2

Question

how can we construct different cells inside cell-array?
hi there, I have a cell array of 1x6 size; 6 cell in one rows which contains a data set. Now, I want to construct a 7th cell i...

2 months ago | 1 answer | 0

### 1

Question

How to set bottom repeating elements in matrix to NaN?
I have matrix of large size and I need to change the bottom repeating elements to nan. For instance: a = [ 1 2 3 2 1 3 ...

2 months ago | 2 answers | 0

### 2

Question

How to pad NaNs in a matrix having small size to make equivalent with matrix of large size?
Hi there, Suppose I have given matrices A= [1 2 3; 4 5 6; 7 8 9] and B=[1 2; 3 4]. Now, I just wanted to pad NaNs in matrix B ...

2 months ago | 2 answers | 0

### 2

Question

Can we change the size of cell inside the cell array?
Hi there, Will it be possible to change the size of the cell inside the cell array? For instance, consider a cell array of siz...

2 months ago | 1 answer | 0

### 1

Question

How to replace the trapped zeros by previous number in a given matrices keeping leading and trailing zeros fixed?
Hi Matlab experts, I have a matrix A=[ 0 0 0 1 0 2 3 1 2 3 0 0 0 1 ...

5 months ago | 1 answer | 0