Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
transforming a row vector into a column vector (continued)
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.