clc
%v2 = [1 2 3 4] or
v2 = 1:4
%v3 = [5, 6, 7, 8] or
v3 = 5:8
%v4 = [0, 0, 0, 0] or
v4 = zeros(1, 4)
%v5 = [1 1 1 1] or
v5 = ones(1, 4)
%v6 = [4 4 4 4] or
v6 = 4*v5
v7 = 3:2:15 % odd numbers from 3 to 15
v8 = 20:-3:10 % go from 20 to 10 with a step of 3
v9 = 0:0.5:3 % go from 0 to 3 with a step of 0.5
v10 = 1:15
v10(3:9) = 2 % sets the elements from position 3 to position
% 9 equal to 2
v10(1:2:end) = 4 % sets all the elements in odd position
% equal to 4
v10(2:2:end) = [] % deletes all the elements in even position
% v11 = 3:3:15 or
v11 = linspace(3, 15, 5) % it creates an array of 5 
% equally-spaced elements ranging from 3 up to 15.
v12 = linspace(2, 4, 11)