Community Profile

# Hylke Dijkstra

Last seen: 3 months ago Active since 2022

#### Content Feed

View by

Preallocating for speed with increments
YUS = Y(:,ROW); B = zeros(1,35); C = B; for h = 1:35 for l = h:35:1435 A = YUS(l,:); B = [B; A]; end B = one...

3 months ago | 0

Question

Preallocating for speed with increments
I am trying to improve the efficiency of my code (the code I am running now takes several minutes to execute) and parts of my co...

3 months ago | 2 answers | 0

### 2

Question

Elementwise division in matrix notation
Dear all, I am trying to write the following code in matrix notation: A = B. / C; A, B and C are column vectors with 1435 row...

5 months ago | 2 answers | 0

### 2

How to replace specific values with 0's
Thanks!

6 months ago | 0

Question

How to replace specific values with 0's
Dear all, I have a 1435x205 matrix and I want to obtain the sum of a specific set of cells. In this case it is from the 146th t...

6 months ago | 2 answers | 0

### 2

Question

How to replace all but one value with zero
I have generated the following vector f: f=[49; 18; 48] And I want to be able to replace each element, except let's say f21, w...

6 months ago | 1 answer | 0