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

Home » Public Forums » archive » transforming a row vector into a column vector (continued)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
transforming a row vector into a column vector (continued) [message #46031] Tue, 25 October 2005 07:01
Francois L. is currently offline  Francois L.
Messages: 19
Registered: December 2004
Junior Member
Hello,

I want to transform the row vector (1-D array) into a column vector.

Having a row vector a:
IDL> a = [1,2,3,4]

If I use the transpose command:
IDL> b = transpose(a)

I get the following:
IDL> print, size(a)
1 4 2 4
IDL> print, size(b)
2 1 4 2 4

With the transpose command b becomes a 2-D array.

How to preserve to one dimension aspect ?

By the way, is there a possibility for knowing what type (row or colum) is a
vector ?

Thanks,

Francois.
[Message index]
 
Read Message
Previous Topic: transforming a row vector into a column vector
Next Topic: mpfit2dpeak and chi-square

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

Current Time: Wed Oct 08 15:52:34 PDT 2025

Total time taken to generate the page: 0.00393 seconds