Concatenate array using square brackets

4 visualizaciones (últimos 30 días)
Quang Nguyen
Quang Nguyen el 26 de Oct. de 2022
Comentada: Voss el 26 de Oct. de 2022
x = zeros(1,9);
x = [1, x(1:9)];
when i run the second line multiple times, it starts to fill in the array x. I want to ask what is the functionality of the second line, and is there any documentation that describes this syntax ?

Respuesta aceptada

Voss
Voss el 26 de Oct. de 2022
  4 comentarios
Quang Nguyen
Quang Nguyen el 26 de Oct. de 2022
Thank you very much, i really get it now
Voss
Voss el 26 de Oct. de 2022
You're welcome!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by