Francois L.
2005-10-25 14:01:20 UTC
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.
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.