circshift for tall vectors

1 visualización (últimos 30 días)
Andrew Liu
Andrew Liu el 25 de Nov. de 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?

Respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by