Empty vector loop

You want push! instead of what you are currently doing

x = []
for t in 0:2
    push!(x, t)
end
1 Like