if true for i = 1749:2016n = 0 ;while n < 12 mescortado = i + n/12; n = n+1; disp(mescortado) end endend
So my idea is making an array with the numbers between 1749 and 2016, with 12 steps per integer, like it was the months of the year. The script above kinda does what i want like this:
if true 17491749.083333333331749.166666666671749.250000000001749.333333333331749.416666666671749.500000000001749.583333333331749.666666666671749.750000000001749.833333333331749.916666666671750end
The problem is that I'm using the display function , which doesn't let me store or work with the values like an array and only shows the answer in console. I also tried to make some for-loops that made an array, but it just made a long array with only the last value (2016.916). Is there a way to make the display result as an array, or better, a correct use of loops for making an array with the years? Thank you in advance
Best Answer