Community Profile

# Inna Pelloso

Last seen: Today Active since 2020

#### Content Feed

View by

Question

Last value of Moving Average in single command
Hi, I have A = rand(10,1). I am calculating an exponential moving average, B = movavg(A,'exponential',2). I only want the last ...

5 days ago | 1 answer | 0

### 1

Question

Setting up linear optimization problem
Hi, I have two 100x1 arrays, X and Y. How do I set this linear problem to run using the optimization toolbox solver? I want to...

1 month ago | 2 answers | 1

### 2

Question

fitcensemble optimize hyperparameters without showing plots
Hi, I am fitting an ensemble of learners for classification, and optimizing the hyperparamers (using the 'auto' selection): f...

2 months ago | 1 answer | 0

### 1

Question

Indexing matrix from array
Hi, I have A = [1:3; 4:6; 7:9] and an index B = [1;0;1]. How can I extract from each column of A the values at are equal to 1 ...

3 months ago | 1 answer | 0

### 1

Question

Select table data by Date
Hi, I have a table, where the frist column is the date, and second column is a variable. ''2021-Jan-04'' -0.1581 ''2021-Jan...

8 months ago | 1 answer | 0

### 1

Question

Creating index and replacing values
Hi, I have A = [0 0 1 0 1 0 0], and B = [ "030121", "030221", "030321"] I want to create C = [ "030121", "030121", "030...

1 year ago | 2 answers | 0

### 2

Question

Position of element in a row
Hi, I have a 3 x 2 matrix, A: A = [1 2 3; 3 5 4] How can I find the position of the number 3 in each row? I want to create B...

1 year ago | 1 answer | 0

### 1

Question

Logical Indexing via multiplication
Hi, I have a 3 x 3 matrix, B = [ 1 2 3; 4 5 6; 7 8 9 ] I have a matrix, A = [ 0 1 0 ]'. How can I extract only the middle ...

1 year ago | 2 answers | 0

### 2

Question

Extracting every nth and (n+1)th element
Hi, I have A = (1:101). How can I extract every nth and (n+1)th element? For example, if n = 10, I want reate B = [10, 11, 20...

1 year ago | 1 answer | 0

### 1

Question

Find all occuarances of two numbers together
Hi, I have an array, a = [ 0 -1 1 0 0 -1 1 0] How can I fing all the ocurances of [ 1 0], ie. the index showing when the numbe...

1 year ago | 2 answers | 0

### 2

Create index between values
Thank you! Really appreciate it.

1 year ago | 0

Question

Create index between values
Hi, I have a 5 x 1 array, a = [ 0 1 0 2 0]. (this is a generalization of a larger problem) I want create and index that fills ...

1 year ago | 2 answers | 0