Alessandro - MATLAB Central
photo

Alessandro


Last seen: 5 days ago Active since 2024

Followers: 0   Following: 1

Statistics

MATLAB AnswersFrom 09/24 to 03/25Use left and right arrows to move selectionFrom 09/24Use left and right arrows to move left selectionTo 03/25Use left and right arrows to move right selectionUse TAB to select grip buttons or left and right arrows to change selection100%

RANK
93,903
of 297,457

REPUTATION
0

CONTRIBUTIONS
6 Questions
0 Answers

ANSWER ACCEPTANCE
100.0%

VOTES RECEIVED
0

  • Thankful Level 3

View badges

Feeds

View by

Question


Change size of input arguments without recompiling mex with codegen
I compiled a simple function with matlab coder. The function takes three input arguments: xvec is [nx,1], yvec is [ny,1] and zma...

1 month ago | 2 answers | 0

2

answers

Question


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

3 months ago | 6 answers | 0

6

answers

Question


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

5 months ago | 2 answers | 0

2

answers

Question


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

6 months ago | 1 answer | 0

1

answer

Question


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

6 months ago | 2 answers | 0

2

answers

Question


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

6 months ago | 1 answer | 0

1

answer
Go to top of page