Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'join matrix' topicStudent Support Forum > General > "join matrix"

Next Comment >Help | Reply To Topic
Author Comment/Response
Florent
06/30/08 10:22am

Hello,

I would like to join, using a command line, a matrix and a vector in a new matrix so that the vector becomes the nth column of the new matrix. For example:

mat={{1,2},{3,4}}
vec={5,6}
newmat={{1,2,5},{3,4,6}}

I tried stuff like : newmat=mat~Join~vec but it has never succeeded.
Thanks by advance for your help.

Florent

URL: ,

Subject (listing for 'join matrix')
Author Date Posted
join matrix Florent 06/30/08 10:22am
Re: join matrix yehuda ben-s... 07/02/08 3:42pm
Re: Re: join matrix Florent 07/03/08 02:17am
Next Comment >Help | Reply To Topic