Community Profile

Hylke Dijkstra

Last seen: 5ヶ月 前 2022 以来アクティブ

バッジを表示

Content Feed

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...

5ヶ月 前 | 0

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...

5ヶ月 前 | 2 件の回答 | 0

2

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...

7ヶ月 前 | 2 件の回答 | 0

2

How to replace specific values with 0's
Thanks!

7ヶ月 前 | 0

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...

7ヶ月 前 | 2 件の回答 | 0

2

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...

7ヶ月 前 | 1 件の回答 | 0

1

Generating a matrix with specific sums
Dear all, I am trying to generate a matrix based on specific sums. Let's say I generate the following matrix X = randi([0 400]...

7ヶ月 前 | 2 件の回答 | 0