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

Home » Public Forums » archive » Re: HISTOGRAM and string data
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: HISTOGRAM and string data [message #53799] Thu, 03 May 2007 09:19 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
Do you know the max number of character per string?

you could try something like this, which works well if you have only 1
character and would need a bit of work if you have more:

IDL> a= ['a','b','b','c','a']
IDL> b = byte(a)
IDL> print,b
97
98
98
99
97

IDL> print, histogram(b, min = 97, max = 99)
2 2 1



Jean
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: 3D registration
Next Topic: problem with writing a 2D image .tiff

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

Current Time: Fri Oct 10 09:53:44 PDT 2025

Total time taken to generate the page: 1.27898 seconds