I'm reading the book Vinay Ingle, John Proakis - Digital Signal Processing Using MATLAB® (3rd Edition) and I came across a function to shift sequences. Mathematically,
$$ y(n) = \{x(n-k) \} $$
if $m = n-k$, then $$ y(m+k) = \{ x(m) \} $$
function [y,n] = sigshift(x,m,k)
n = m + k;
y = x;
end
This function shifts nothing. I've tried to find errata list of the book, but I couldn't find it. Is this function correct?