% Practical 4, Subject 3: sub3p4.m
a = 1
a(5,5)=10
clear
a=zeros(5,5);
a = 1
a(5,5)=10
clear
whos
tic;a(10000,10000)=10;toc
whos
clear
whos
a=zeros(10000,10000);
whos
tic;a(10000,10000)=10;toc
whos
clear
x = [30 10 20]
y = magic(4)
x
sum(x)
prod(x)
sort(x)
cumsum(x)
cumprod(x)

sum(y)
sum(sum(y))

sort(y)

min(x)
max(x)

a= min(x)

[a b] = min(x)
