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

Home » Public Forums » archive » Re: how to convert a row of data in a column?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to convert a row of data in a column? [message #82904] Fri, 25 January 2013 09:01 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Friday, January 25, 2013 7:57:04 AM UTC-6, pan...@gmail.com wrote:
> Thanks, I solved the problem myself by writing a for loop.

In IDL, for loops are the embodiment of pure evil:

http://www.idlcoyote.com/tips/forloops.html

Well, maybe not so bad sometimes:

http://www.idlcoyote.com/tips/forloops2.html

But, for your problem, you're trying to convert to a row vector into a column vector. A couple ways to that:

IDL> d = TRANSPOSE(set) & help, d

or

IDL> d = REFORM(set, 1, N_ELEMENTS(set))
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to convert a row of data in a column?
Next Topic: Re: FFT phase?

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

Current Time: Wed Oct 08 15:22:13 PDT 2025

Total time taken to generate the page: 0.00545 seconds