Concatenate array using square brackets

13 Ansichten (letzte 30 Tage)
Quang Nguyen
Quang Nguyen am 26 Okt. 2022
Kommentiert: Voss am 26 Okt. 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 ?

Akzeptierte Antwort

Voss
Voss am 26 Okt. 2022
  4 Kommentare
Quang Nguyen
Quang Nguyen am 26 Okt. 2022
Thank you very much, i really get it now
Voss
Voss am 26 Okt. 2022
You're welcome!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by