clear; clc;

for i = [5, 4, 3, 2, 1]
    disp(i);
end

for i = 5 : -1 : 1
    disp(i);
end

data = [3, 6, 8, 1, 2];
for i = 1 : 5
    disp(data(i));
end

% for-each loop
for item = data
    disp(item);
end

for student = {'Arthur', 'Alice'}
    s = cell2mat(student);
    class(s)
    disp(s);
    % remember to take things out of cells
end