% Practical 6, Subject 3: sub3p6.m
a= [ 1.1 2.2 3.3 4.4 5.5 ]
a([1 4])
a(1:2:5)
a(3:end)
c= magic(3)
c(1:2:3,:)
a(1:2:5) = [11 33 55]
a(1:3) = 12

z = 1:3
z1 = [ z z]
z2 = [ z' z']
z3 = [ z ; z]
z4 = [ z' ; z']

%Delete 'column' or a row vector
  a(5)=[]
%Delete third row of c
  c(3,:)=[]
% More delete on a
  a(end)=[]
% add row [9 10 11] to a
  a= [a ; 9 10 11]
% add row [1 2 3] as a second row
  a= [ a(1,:) ; [ 1 2 3 ] ; a(2:end,:)]
% add column by way of 6.9 to become 3rd colum
  a= [ a(:,1:2) [10 20 30]' a(:,3:end)]
%
%
a= [ 1.1 2.2 3.3 4.4 5.5 ]
a([1 4])
a(1:2:5)
a(3:end)
a(1:2:5)=[10 20 30]
a([1 2]) = [100 200]
a= [1 2 3 4; 5 6 7 8 ; 9 10 11 12]
a(1:2,1:2)=100
