MATLAB: Array question

array

Hey every1,
I am trying to shift content of one array starting from i = 2; a[i] = b[i-d)
so I created for loop.. for i = 2:10 a[i]= b[i-d].. Its actually putting the content there starting from index 2 so I wanted when I plot it to discard a[1] and just start from a[2]. In matlab workspace the content is correct so my for loop is right but a[1] is still there and I want to shift to just be discarded ???
Thanks in advance

Best Answer

idx = 2:10
a = b(i-d);