Very simple question, but I didn't find anything...
I have to split my code in different sections and run it the following way, because some matrices are built from left to right and some from right to left via backwards induction. For example, if I split it in 3 sections, I would run the sections in this order:
1, 2, 3,
1, 2,
1,
1, 2,
1, 2, 3.
So I need a vector [1, 2, 3, 1, 2, 1, 1, 2, 1, 2, 3]. But since the number of sections is much greater than 3, I want to build a general vector that goes:
1 : noSections
1 : noSections - 1
...
1
...
1 : noSections
How would I do that?