% Examples for creating matrices
% Example 1
a = [ 1 2 3 4 5]
b = 7

v1 = a + b
v2 = a * b;

% Example 2
a = [ 1, 2, 3, 4, 5]
b = [ 0; 2; 4; 6; 8]
c = b'

% Example 3
A = [1 2 3; 4 5 6; 7 8 9]
B = [1,0,0;0,2,0;0,0,5]

% Example 4
c1 = [1; 2; 3]
c2 = [4; 5; 6]
c3 = [7 8 9]'

M1 = [c1, c2, c3]
M2 = [c1; c2; c3]

% Example 5
u = 1:3
v = 1:10
w = 0:2:10
q = linspace(0, 10, 50)

% Example 6
A = zeros(3)
B = zeros(3, 2)
D = ones(2, 5)
F = eye(4, 3)











