| 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: , |
|