From: Chris on
I have this formula can someone explain what it means?

X( mod((1:end)-k-1, end)+1 )

I know X = my_vector
mod is the modulus after division (unclear)
but it gets confusing at the indexing portion.... Can anyone take some time to explain this?