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

Home » Public Forums » archive » spacing between characters
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
spacing between characters [message #84872] Fri, 14 June 2013 17:56 Go to next message
mkmvarma is currently offline  mkmvarma
Messages: 24
Registered: November 2007
Junior Member
Hello,
I am trying to write out a text file in IDL. I have string that I want to write in the file but would like to increase the spacing between the characters in the string. Is there a way to do that in IDL?

The string that I have is : 0.01 0.15 0.25 0.48 1.08 1.93 2.76 4.74 9.50
I would like increase the spacing between each character (between 0.01 and 0.15 and so on).

Thanks
Re: spacing between characters [message #84874 is a reply to message #84872] Sat, 15 June 2013 02:26 Go to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
On 2013-06-15 02:56, mkmvarma@gmail.com wrote:

> The string that I have is : 0.01 0.15 0.25 0.48 1.08 1.93 2.76 4.74 9.50
> I would like increase the spacing between each character (between 0.01 and 0.15 and so on).


IDL> a='0.01 0.15 0.25 0.48 1.08 1.93 2.76 4.74 9.50'
IDL> print,a
0.01 0.15 0.25 0.48 1.08 1.93 2.76 4.74 9.50
IDL> print,strjoin(strsplit(a,' ',/extr),' ')
% Compiled module: STRSPLIT.
0.01 0.15 0.25 0.48 1.08 1.93 2.76 4.74 9.50
IDL> print,strjoin(strsplit(a,' ',/extr),' ')
0.01 0.15 0.25 0.48 1.08 1.93 2.76 4.74 9.50
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: export structure to an ascii file
Next Topic: Why is the content of my object graphics window being wiped?

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

Current Time: Wed Oct 08 15:05:54 PDT 2025

Total time taken to generate the page: 0.00435 seconds