a = [12 8 -9 10];
b = a(2:4);
b(6) = 12;