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

8 次查看(过去 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.

请先登录,再进行评论。

更多回答(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