I have a matrix range on subscript format, for example something like
y = [1:3]x = [4:6]
I would like to convert this range to a vector containing all the elements of the range separately. I.e. the example above would result in a vector that is
v = [1,41,51,62,42,52,63,43,53,6]
Is there any nice way of achieving this, or do I have to resort to nestled for loops?
Best Answer