Community Profile

jyloup p


Active since 2014

Professional Interests: applied mathematics

Statistics

All
  • First Review
  • Thankful Level 1
  • Solver

View badges

Content Feed

View by

Answered
How to generate a single vector of block-consecutive values from 2 vectors of same size without a loop ?
I did another series of tests on big vecors: a = randi(500,1,100); a=cumsum(a); b=randi(500,1,100); b=b+a; b=cu...

10 years ago | 0

Answered
How to generate a single vector of block-consecutive values from 2 vectors of same size without a loop ?
Ok I tested the four solutions you proposed to me. Andrei Bobrov's variant solution is the best one in term of "Matlab compact ...

10 years ago | 0

Answered
How to generate a single vector of block-consecutive values from 2 vectors of same size without a loop ?
OK that function |cell2mat(arrayfun(@(x,y) x:y,a,b,'un',0))| answers my question. However I wouldn't have believed that a loop ...

10 years ago | 0

Question


How to generate a single vector of block-consecutive values from 2 vectors of same size without a loop ?
Hello, I have 2 vectors of same size let's say |a = [3 7 19 22]| and |b = [5 10 20 24]| And from those 2 vectors I want...

10 years ago | 7 answers | 0

7

answers

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

10 years ago