Re: combine 2 row-vectors to a matrix [message #16436] |
Tue, 27 July 1999 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
eva (kremasti@sbox.tu-graz.ac.at) writes:
> I have the following problem.
> I have two row vectors lets say A=[1,2,3] and B=[4,5,6] and I want to
> create a matrix
>
> M=[[1,2,3], $
> [4,5,6]]
>
> is there any command in IDL doing this thing.
How about this:
M = [[A],[B]]
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: combine 2 row-vectors to a matrix [message #16437 is a reply to message #16436] |
Tue, 27 July 1999 00:00  |
Kirmanta de Malher
Messages: 5 Registered: March 1998
|
Junior Member |
|
|
eva wrote:
> Hi all,
>
> i have the following problem.
> I have two row vectors lets say A=[1,2,3] and B=[4,5,6] and I want to
> create a matrix
>
> M=[[1,2,3], $
> [4,5,6]]
>
> is there any command in IDL doing this thing.
>
> thank you in advance
> Eva Flevaris
>
>
Hi Eva
you can type M = [[A],[B]]
--
+--------------------------------------+
| |
| Jesus Fernandez |
| Unite IRM du CHU de Caen |
| Avenue de la cote de nacre |
| 14033 Caen |
| France |
| |
+--------------------------------------+
|
|
|