To paraphrase the previous two posts:
You are trying to access an element in the fifth column of a column vector.
That’s impossible, because column vectors only have one column, not five.
Setting w = 5
changes everything, because that’s where you are essentially asking Julia to look in columns that don’t exist.