I used a for loop starting from 1 to numpoints and added filled arrays etvalues, yvals and v_yvals (time, height and vertical speed) with n