MATLAB: Can anyone help me to fix the issue

for loop

code:
v=[1 2 3 4];
v=[5 6 7 8 9];
v=[10 11 12 13 14 15];
for v = [1 2 3 4]
disp(v)
end
In the above code could anyone help me how to display v=[1 2 3 4];
v=[5 6 7 8 9];
v=[10 11 12 13 14 15]; together using the same for loop.

Best Answer

v={[1 2 3 4];[5 6 7 8 9];[10 11 12 13 14 15]};
for i=1:size(v,1)
v{i,:}
end