Concatenate array using square brackets

조회 수: 1 (최근 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 CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by