a = [ ; ; ]; b = [- - -; - - -;- - -]; c = [ ; ; ]; Hist(:,:,) = a; Hist(:,:,) = b; Hist(:,:,) = c; Hist_1 = circshift(Hist,[,,-]); Hist_2 = circshift(Hist,[,,]); Hist_3 = circshift(Hist,[,,]);Hist:Hist_1:Hist_2:Hist_3: