photo

Alessandro D


Last seen: 2 years ago Active since 2018

Followers: 0   Following: 0

Statistics

  • First Review
  • Thankful Level 3

View badges

Feeds

View by

Question


Improve speed of linear interpolation in nested loops
I have to do 1-dimensional linear interpolation many times within 4 nested loops. My X-grid is sorted so I can use interp1q but ...

2 years ago | 1 answer | 1

1

answer

Question


vectorize nested loops interpolation
I have two nested loops and inside the inner loop I use linear interpolation in one dimension. I would like to vectorize the inn...

2 years ago | 1 answer | 0

1

answer

Question


Save figures in png format
In order to save a plot in png format I use the following: print(fullfile(FigDir,'firmSize'),FormatFig) where FormatFig='-dpng...

2 years ago | 1 answer | 0

1

answer

Question


Matlab JIT engine nested loops data type
In the textbook "Matlab programming for engineers" by S.Chapman (4th edition) it is stated that (see pp. 165-166) The JIT compi...

3 years ago | 1 answer | 1

1

answer

Question


Create table from structure - alignment
I have a structure with scalar fields, say mom, and I would like to display the values of the structure on the screen in aligned...

3 years ago | 2 answers | 0

2

answers

Question


Optimize the ordering of nested loop for speed
Suppose I have the following code. Will it be faster version 1 or version 2? What changes is the ordering of the two nested loop...

6 years ago | 2 answers | 0

2

answers

Question


call function - slow
Dear users, I am struggling with optimizing the code for a project of mine and I am following the suggested practice of breaking...

6 years ago | 1 answer | 0

1

answer

Question


how to search an ordered array/ find bracket
I am trying to write a fast procedure to locate the position of an element in a sorted array. Specifically the function should t...

6 years ago | 1 answer | 0

1

answer

Question


fzero - how to set maximum number of iterations
Dear users, I am using fzero to find the root of a nonlinear function. I call the routine as x = fzero(fun,x0,options) ...

6 years ago | 1 answer | 0

1

answer

Question


Functions vs scripts: speed
Dear all, The structure of my code is the following: **** VERSION A************** output = fun1(inputs) Piece ...

6 years ago | 2 answers | 0

2

answers