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

Home » Public Forums » archive » string manipulation
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: string manipulation [message #23959 is a reply to message #23898] Tue, 27 February 2001 16:35 Go to previous messageGo to previous message
John-David T. Smith is currently offline  John-David T. Smith
Messages: 384
Registered: January 2000
Senior Member
Mark Hadfield wrote:
>
> "JD Smith" <jdsmith@astro.cornell.edu> wrote in message
> news:3A9C2CF5.F632B1AF@astro.cornell.edu...
>> [...]
>> new=strmid(key,0,transpose(p1))+'50'+strmid(key,tranpose(p2) )
>>
>> The key is putting the threading vector on its head, as a column
>> vector.
>
> Aaaaagh! The major reason I hate Matlab is all the "Have I got a row vector
> or a column vector?" rubbish! I feel like picking it up & shaking it &
> saying, "No, it's not a matrix, it's not a column vector, it's not a row
> vector, it's just a list of numbers. It's not dimensioned (n,1) and it's not
> dimensioned (1,n), it's dimensioned (n). You can print it vertically, you
> can print it horizontally, I don't care, it's just a list of numbers!"
>
> And now JD shows us how to confuse ourselves with row vectors and column
> vectors in IDL! As if HISTOGRAM wasn't enough. JD, I call down a curse on
> you, and your children, and your children's chil.....[falls from chair in
> paroxysm of rage]

Good on ya. I aim to please.

JD


P.S. The many ways to make column vectors:

IDL> cv=[[1],[2],[3]]

or

IDL> cv=rotate([1,2,3],1)

or

IDL> cv=transpose([1,2,3])

or

IDL> cv=array[0,*]

or

IDL> cv=reform([1,2,3],1,3)

or

IDL> cv=[1,2,3]##1

or

IDL> cv=1#[1,2,3]

or

...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MPEG and IDL 5.4
Next Topic: Re: IDLgrLegend geometry

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

Current Time: Sat Nov 29 03:35:18 PST 2025

Total time taken to generate the page: 0.00856 seconds