Post Reply 
Programming Question: How do you augment one matrix with another?
07-02-2014, 12:47 AM (This post was last modified: 07-02-2014 03:12 AM by Helge Gabert.)
Post: #2
RE: Programming Question: How do you augment one matrix with another?
If you're after augmenting two matrices horizontally, in CAS, CONCAT works.

If you're after augmenting two matrices vertically, again, in CAS, one solution would be to transform the matrices into lists with mat2list, then use CONCAT on the lists, and put everything back again with list2mat.

I have not checked yet if this also works in home. [edit: vertically augmenting works fine in home as well. For horizontal augmentation in home, you need to call CAS.CONCAT(matrix1, matrix2).]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming Question: How do you augment one matrix with another? - Helge Gabert - 07-02-2014 12:47 AM



User(s) browsing this thread: 2 Guest(s)