% This is a Script called: FirstConventions
% Kommentarzeilen beginnen mit %
% Die erste Gruppe von Kommentarzeilen wird bei HELP ausgegeben.
% Eigentlich geh"ort zwischen je zwei Zeilen der Befehl PAUSE,
% der funktioniert aber im CIP-Pool nicht. Daher l"auft alles
% auf einmal ab.
message = 'MatrixDemo, first definitions';
first = [message(1:11), 'use long names'], second = message(13:end)
horizontal=[1:6]
horizontal=[horizontal, 7, 8]
vertical=horizontal(3:8)'
vertical=[2; 1; 0; vertical]
rx = rand(3,5), ry = rand(3,5)
rx_ry = [rx;ry]
rx = [rx; rx(1,:)], ry = [ry; ry(1,:)]

remark = 'PLOT conventions, see Graphic:'
plot(rx,ry,'*'), hold on, pause(3)
plot(rx,ry), pause(5)
plot(rx',ry', ':')

warning = 'Rounding errors:'
shortDeci = [0: 0.6667: 2]
noError = [0:3]*2/3

learn = 'Multiplications:'
t = [0:5]; t2 = t.*t; tABOVEt2 = [t;t2]
x = [0:20]/10;
figure, plot(x, x.*x, cos(pi*x), sin(pi*x)),
title('Quadratic Parabola, Circle'), seeGraphic = []
horiXvert = t * [t', 2*t', 3*t'],
columnXrow = t' * t
tripleRow = [1;1;1] * t
r2c3 = rand(2,3), MMmultiply = r2c3*tripleRow

note = 'Abbreviations:'
columnXrow, columnSum = sum(columnXrow),
seeAbove = [sum(r2c3')', MMmultiply(:,2)]
columnMax = max(columnXrow)
cumulativeSum = cumsum(columnXrow)