This challenge is about recursion (Robbers' thread)
Octave, by Sanchises 27 bytes

There are so many, many ways to do this in a loopy-way. For instance this one, if an explicit loop is needed:



for i=1:input('')disp(i)end


Try it online!

Or, if you want to create a vector (I haven't golfed this terribly well, since using a loop like this is kinda pointless):

x=0;for i=1:input(''),x(i)=i;end,x


Or 7 bytes if it's OK to not use a loop at all:

@(n)1:n