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

Home » Public Forums » archive » Another strsplit question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Another strsplit question [message #37768] Tue, 20 January 2004 08:00
kneller is currently offline  kneller
Messages: 4
Registered: January 2004
Junior Member
Most functions in IDL will operate on arrays.
Is there a way to make strsplit allow this?

e.g.
s = ['I see the computer.','I am typing a message.',$
'This is the idl-pvwave newsgroup.']

segs = strsplit(s,/extract,/some_option)

print,segs[0,0],segs[1,0],segs[2,0],segs[2,4]

RESULT WOULD BE:

I I This newsgroup.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: on reading NCDF files
Next Topic: RADON and BACKPROJECT

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

Current Time: Sat Oct 11 09:21:39 PDT 2025

Total time taken to generate the page: 1.25378 seconds