photo

Alessandro


Last seen: Today 2024 年からアクティブ

Followers: 0   Following: 1

統計

  • Thankful Level 3

バッジを表示

Feeds

表示方法

質問


Vectorized code slower than loops
I am trying to speed up the code reported below (it is a MWE, actual code is more complicated). I vectorized the inner loop (see...

1日 前 | 6 件の回答 | 0

6

回答

質問


Convert cell array of structures to numeric vector
Suppose I have ale{1}.a = 0; ale{2}.a = 1; ale{3}.a = 1.5 ale_vec = NaN(length(ale),1); for ii=1:length(ale) ale_vec(...

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

2

回答

質問


How to speed up vectorized operations for dynamic programming
I would like to speed up the following code which solves a discrete dynamic programming problem using the method of successive a...

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

1

回答

質問


Colon operands must be real scalars
I tested the following code: x = rand(1,3); x([1,2]:[1,2]) In R2024a it gives a warning but it is ok in R2023b! Some existi...

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

2

回答

質問


Poor performance of linprog in practice
I have to solve a dynamic programming problem using a linear programming approach. For details, please see this paper. The LP th...

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

1

回答