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

Home » Public Forums » archive » How do I use FORMAT as I would SPRINTF?? Please Help!
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 do I use FORMAT as I would SPRINTF?? Please Help! [message #32216 is a reply to message #32125] Thu, 19 September 2002 08:54 Go to previous messageGo to previous message
Brian Huether is currently offline  Brian Huether
Messages: 12
Registered: September 2002
Junior Member
Thanks for all the replies. Looks like I will have some MATLAB licenses
available to me next week so I'll be able to go back to my familiar ways!
The only thing I was able to do with IDL during my short time with it was
write a routine that creates an HDF file based on inputted data and
attributes. It is a fairly general routine and seems to work.

-brian

"Brian Huether" <bhuether@earthlink.net> schrieb im Newsbeitrag
news:3d89a431$1_8@news.teranews.com...
> I am quite perplexed by the IDL FORMAT keyword. I am used to MATLAB where
I
> can quite simply use the sprintf command. For instance, in MATLAB, the
> command
>
> s = sprintf('IDL has been driving me crazy for the last %d days', 10)
>
> would result in a string that contains
>
> 'IDL has been driving me crazy for the last 10 days'
>
> What I really need to do is something like this:
>
> s = sprintf('SIZE(%s, /%s)', arrayname, somekeyword)
>
> So if arrayname is A and somekeyword is TYPE, then the resulting string
> would be
>
> 'SIZE(A, /TYPE)'
>
> It is a meaningless example but hopefully you see what I want to do (i.e.
I
> need to execute IDL commands in a loop, where each time through, the
command
> input parameters are varying and are specified by indexing arrays that
> contain the parameters)
>
>
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: How do I use FORMAT as I would SPRINTF?? Please Help!
Next Topic: Re: Displaying data in 3 coodinates

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

Current Time: Sun Oct 12 00:17:37 PDT 2025

Total time taken to generate the page: 1.59850 seconds