I am converting a function in MatLab to C++ and come across this (in matlab):
f = blocks(min:max,1:len);
with values: min = 153, max = 205
It is a 2D vector. So does the line of code above create a new 2D vector and copy the all of the blocks inside “blocks” to the new vector?
So in essence, it’s essentially a loop that starts at 153 ending at 250 and copies each of the blocks to the new vector?
Hope someone can help!
That statement takes rows between
minandmaxand columns between1andlenfromblocksmatrix and assigns them tof.Let’s give this a try:
I don’t know C++ well but probably you will need 2
forloops to do that.