How to append different length column matrix to the end of a matrix?

조회 수: 9 (최근 30일)
Hi,
I want to add different length column matrix at the end of the matrix.
For example,
In 1 iteration, add 2 x1 matrix,
then in 2nd iteration, add 4 x 1 matrix,
then in 3rd iteration, add 6 x 1 matrix.
please suggest how to do this.
Thanks

채택된 답변

Star Strider
Star Strider 2021년 12월 26일
One option is the cat function, another option is to use the square brackets [] concatenation operator.
.
  댓글 수: 5
SANDEEP SINGH RANA
SANDEEP SINGH RANA 2021년 12월 28일
Some problem is there in my function.
I will correct it. But thank you for the help.
Star Strider
Star Strider 2021년 12월 28일
As always (our) pleasure!
.

댓글을 달려면 로그인하십시오.

추가 답변 (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