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

Home » Public Forums » archive » Re: Exporting matrices without filling blank space with zeros
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: Exporting matrices without filling blank space with zeros [message #67653 is a reply to message #67650] Wed, 19 August 2009 09:25 Go to previous message
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
On Aug 19, 2:46 pm, Julio <julio.esque...@gmail.com> wrote:
> I have several arrays with one column, but with different number of
> lines. For example, arrays 1 and 2:
>
> array1
> 10
> 30
> 12
> 34
> 12
>
> array2
> 102
> 34
> 14
>
> I want to put these arrays in one ASCII file or SYLK spreadsheet, like
> this:
>
> 10 102
> 30 34
> 12 14
> 34
> 12
>
> I guess it must be easy, but I can't do that, once the output matrix
> fills the blank spaces with zeros. How can I do that?
>
> Best
> Julio

Hi Julio,

If you use a string array as your output matrix, the zeroes should be
gone, replaced by blank strings.
Regards,
Chris
[Message index]
 
Read Message
Read Message
Previous Topic: CHISQR_CVF question.
Next Topic: FITS to ascii spectra

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

Current Time: Sun Oct 12 01:58:07 PDT 2025

Total time taken to generate the page: 0.01126 seconds