% Example 1
x = 0:10
y = x + 1
y = x * 2
y = x * x
% get an error?  Try:
y = x.*x

% Example 2
x = 1:5
y = x^2
% Another error?  Try:
y = x.^2

%Example 3
v1 = 1:10
size(v1)
length(v1)

v2 = v1'
size(v2)

% Example 4
a = [1 4 10 7 3]
m = max(a)
[m, i] = max(a)
