comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: combine 2 row-vectors to a matrix
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: combine 2 row-vectors to a matrix [message #16436] Tue, 27 July 1999 00:00
davidf is currently offline  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 Go to previous message
Kirmanta de Malher is currently offline  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 |
| |
+--------------------------------------+
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLgrAXIS annotation
Next Topic: printer setup

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:00:48 PDT 2025

Total time taken to generate the page: 0.00528 seconds