circshift for tall vectors

1 view (last 30 days)
Andrew Liu
Andrew Liu on 25 Nov 2020
I am trying to do something like
x = [zeros(n,1);x(1:end-n)];
where x is a tall column vector of either logical or numeric values and n is small, positive integer (e.g. <100). My workaround is...
x = matlab.tall.movingWindow(@(x)x(1),[n,0],x,'EndPoints',z); % z is either 0 or false depending on underlying class of x
but this is rather slow and seems like a very roundabout way of solving the problem. Is there a simpler solution?

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!