MATLAB: Creating an ordered list of vectors


I'm looking to create a list of vectors arbitrary in length. I was looking for something along the lines of: iterations=___ % some arbitrary number
for i=1:iterations vi=[1 2 3 4]; end
Hoping this would create the vectors v1, v2, v3, v4 … which are all the same vector [1 2 3 4].

Best Answer

Please do not do that. Please read this FAQ