Insert values into an array

 Respuesta aceptada

Walter Roberson
Walter Roberson el 5 de Jul. de 2012

2 votos

A = [0 A]; %build new array
Or:
A(2:end+1) = A; %shift over and zero
A(1) = 0;

Más respuestas (0)

Categorías

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by