circshift for tall vectors
1 view (last 30 days)
Show older comments
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?
0 Comments
Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!