circshift for tall vectors
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!