Concatenate array using square brackets

4 ビュー (過去 30 日間)
Quang Nguyen
Quang Nguyen 2022 年 10 月 26 日
コメント済み: Voss 2022 年 10 月 26 日
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 ?

採用された回答

Voss
Voss 2022 年 10 月 26 日
  4 件のコメント
Quang Nguyen
Quang Nguyen 2022 年 10 月 26 日
Thank you very much, i really get it now
Voss
Voss 2022 年 10 月 26 日
You're welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by