Suppose there is a vector
v = [1 2 3];
in MATLAB. I am doing a signal processing operation which needs a non causal signal, so what I basically require is the vector to start from -1 ,i.e, I need to do this
v[-1] = 1
v[0] = 2
v[1] = 3
unlike the usual MATLAB indexing i.e
v[1] = 1
v[2] = 2
v[3] = 3
Is there a way to do this? Can someone write a matlab function to accomplish this?