Insert a row into an existing Matrix

Insert a row into an existing Matrix - Best way to insert a row / col into matrix - 消息

#1 已发布: 2015/3/21 13:27:34
Ryan Freund

Ryan Freund

20个赞,共339个帖子。

组: User

What is the "best" way to insert a row into an existing matrix.

Say I am looping through a matrix and I want to insert a row (or column) of elements because of some other criteria. Then continue to loop through the matrix, adding rows when required by the conditions set. What is the best way to do this?

Thanks
#2 已发布: 2015/3/22 14:31:34
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

You can try using stack() and submatrix() or with the Linq extension
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • 有新帖
  • 无新帖